Skip to content

Commit

Permalink
build: v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassasovsky committed Oct 26, 2023
1 parent 373e549 commit 2000f88
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 6 additions & 3 deletions lib/src/models/webhook_resource_data_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ class MatiWebhookResourceData extends MatiResponse with EquatableMixin {
steps: json['steps'] == null
? null
: List<MatiWebhookResourceDataStep>.from(
((json['steps'] as List).cast<Map<dynamic, dynamic>>())
(json['steps'] as List)
.cast<Map<dynamic, dynamic>>()
.map(MatiWebhookResourceDataStep.fromMap),
),
documents: json['documents'] == null
? null
: List<Document>.from(
((json['documents'] as List).cast<Map<dynamic, dynamic>>())
(json['documents'] as List)
.cast<Map<dynamic, dynamic>>()
.map(Document.fromMap),
),
hasProblem: json['hasProblem'] as bool? ?? true,
Expand Down Expand Up @@ -279,7 +281,8 @@ class Document extends Equatable {
steps: json['steps'] == null
? null
: List<DocumentStep>.from(
((json['steps'] as List).cast<Map<dynamic, dynamic>>())
(json['steps'] as List)
.cast<Map<dynamic, dynamic>>()
.map(DocumentStep.fromMap),
),
fields: json['fields'] == null
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 2000f88

Please sign in to comment.