mapFromJson static method

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

Implementation

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