Skip to content

Commit

Permalink
Merge pull request #1 from Loukanikos99/feat/add-missing-fields-in-re…
Browse files Browse the repository at this point in the history
…sponse

added missing fields in the webhook resource data response
  • Loading branch information
tomassasovsky authored Mar 28, 2023
2 parents 4873627 + 6a7f077 commit 259f2e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/models/webhook_resource_data_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ class Fields extends Equatable {
this.curp,
this.ne,
this.ocrNumber,
this.surname,
this.lastName,
});

factory Fields.fromMap(Map<dynamic, dynamic> json) {
Expand All @@ -337,6 +339,8 @@ class Fields extends Equatable {
curp: parseField('curp'),
ne: parseField('ne'),
ocrNumber: parseField('ocrNumber'),
surname: parseField('surname'),
lastName: parseField('lastName'),
);
}

Expand All @@ -349,6 +353,8 @@ class Fields extends Equatable {
final DocumentField? curp;
final DocumentField? ne;
final DocumentField? ocrNumber;
final DocumentField? surname;
final DocumentField? lastName;

@override
List<Object?> get props {
Expand All @@ -362,6 +368,8 @@ class Fields extends Equatable {
curp,
ne,
ocrNumber,
surname,
lastName,
];
}
}
Expand Down

0 comments on commit 259f2e6

Please sign in to comment.