mapFromJson static method

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

Implementation

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