DurationInformation.fromJson constructor Null safety

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

Implementation

DurationInformation.fromJson(Map<String, dynamic> json) {
  large = Large.fromJson(json['Large']);
  mid = Large.fromJson(json['Mid']);
  marathon = Large.fromJson(json['Marathon']);
  fast = Large.fromJson(json['Fast']);
}