toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['Large'] = large.toJson();
  data['Mid'] = mid.toJson();
  data['Marathon'] = marathon.toJson();
  data['Fast'] = fast.toJson();
  return data;
}