mapFromJson static method

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

Implementation

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