toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'name'] = this.name;
json[r'code'] = this.code;
json[r'map'] = this.map;
json[r'previous_map'] = this.previousMap;
json[r'duration'] = this.duration;
json[r'expiration'] = this.expiration.toUtc().toIso8601String();
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
return json;
}