mapFromJson static method

Map<String, BarcodeResponse> mapFromJson(
  1. Map<String, Map<String, dynamic>> json
)

Implementation

static Map<String, BarcodeResponse> mapFromJson(
    Map<String, Map<String, dynamic>> json) {
  final map = Map<String, BarcodeResponse>();
  if (json.isNotEmpty) {
    json.forEach((String key, Map<String, dynamic> value) =>
        map[key] = BarcodeResponse.fromJson(value));
  }
  return map;
}