mapFromJson static method

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

Implementation

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