mapFromJson static method

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

Implementation

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