Skip to content

Commit

Permalink
Added listFromJson to DecodeType
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kamkin authored and Ivan Kamkin committed Jan 30, 2024
1 parent df4b620 commit b81d725
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/model/decode_barcode_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -578,4 +578,8 @@ class DecodeBarcodeType {
String toString() {
return value == null ? "null" : value.toString();
}

static List<DecodeBarcodeType> listFromJson(List<dynamic> json) {
return json.map((value) => DecodeBarcodeType.fromJson(value)).toList();
}
}

0 comments on commit b81d725

Please sign in to comment.