SubstitutionDay.fromJson constructor

SubstitutionDay.fromJson(
  1. Map<String, dynamic> json
)

Implementation

SubstitutionDay.fromJson(Map<String, dynamic> json)
  : parsedDate = json['date'],
    substitutions = (json['substitutions'] as List)
        .map((i) => Substitution.fromJson(i))
        .toList(),
    infos = (json['infos'] as List?)
        ?.map((i) => SubstitutionInfo.fromJson(i))
        .toList();