Skip to content

Commit

Permalink
Merge pull request #3 from Loukanikos99/bug/change-bad-fields
Browse files Browse the repository at this point in the history
fixed error in fields on the response of the webhook
  • Loading branch information
tomassasovsky authored Mar 30, 2023
2 parents a8c3f09 + a9b88bf commit bfb90a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/models/webhook_resource_data_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class Fields extends Equatable {
this.ne,
this.ocrNumber,
this.surname,
this.lastName,
this.firstName,
});

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

Expand All @@ -354,7 +354,7 @@ class Fields extends Equatable {
final DocumentField? ne;
final DocumentField? ocrNumber;
final DocumentField? surname;
final DocumentField? lastName;
final DocumentField? firstName;

@override
List<Object?> get props {
Expand All @@ -369,7 +369,7 @@ class Fields extends Equatable {
ne,
ocrNumber,
surname,
lastName,
firstName,
];
}
}
Expand Down

0 comments on commit bfb90a1

Please sign in to comment.