diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cc3406..0c3b602 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.0.0 + +* feat!: rename selfiePhotoUrl to selfieUrl + ## 1.1.0 * Added missing fields in the webhook resource data response diff --git a/lib/src/models/webhook_resource_data_response.dart b/lib/src/models/webhook_resource_data_response.dart index 3318eff..3d5b334 100644 --- a/lib/src/models/webhook_resource_data_response.dart +++ b/lib/src/models/webhook_resource_data_response.dart @@ -29,13 +29,15 @@ class MatiWebhookResourceData extends MatiResponse with EquatableMixin { steps: json['steps'] == null ? null : List.from( - ((json['steps'] as List).cast>()) + (json['steps'] as List) + .cast>() .map(MatiWebhookResourceDataStep.fromMap), ), documents: json['documents'] == null ? null : List.from( - ((json['documents'] as List).cast>()) + (json['documents'] as List) + .cast>() .map(Document.fromMap), ), hasProblem: json['hasProblem'] as bool? ?? true, @@ -279,7 +281,8 @@ class Document extends Equatable { steps: json['steps'] == null ? null : List.from( - ((json['steps'] as List).cast>()) + (json['steps'] as List) + .cast>() .map(DocumentStep.fromMap), ), fields: json['fields'] == null diff --git a/pubspec.yaml b/pubspec.yaml index 7961601..f1cce20 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: mati_rest_api description: A wrapper for the Metamap REST API. -version: 1.1.0 +version: 2.0.0 homepage: https://github.com/tomassasovsky/mati_rest_api.dart environment: