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