toJson method Null safety
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;
}