mapFromJson static method

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

Implementation

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