Skip to content

Commit

Permalink
feat: add document field "sex" to the webhook_resource_data_response (#4
Browse files Browse the repository at this point in the history
)

Co-authored-by: AndreasMeggetto <[email protected]>
  • Loading branch information
Loukanikos99 and AndreasMeggetto authored May 8, 2023
1 parent bfb90a1 commit 542b257
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/models/webhook_resource_data_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ class Fields extends Equatable {
this.ocrNumber,
this.surname,
this.firstName,
this.sex,
});

factory Fields.fromMap(Map<dynamic, dynamic> json) {
Expand All @@ -341,6 +342,7 @@ class Fields extends Equatable {
ocrNumber: parseField('ocrNumber'),
surname: parseField('surname'),
firstName: parseField('firstName'),
sex: parseField('sex'),
);
}

Expand All @@ -355,6 +357,7 @@ class Fields extends Equatable {
final DocumentField? ocrNumber;
final DocumentField? surname;
final DocumentField? firstName;
final DocumentField? sex;

@override
List<Object?> get props {
Expand All @@ -370,6 +373,7 @@ class Fields extends Equatable {
ocrNumber,
surname,
firstName,
sex,
];
}
}
Expand Down

0 comments on commit 542b257

Please sign in to comment.