toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.code != null) {
json[r'code'] = this.code;
} else {
json[r'code'] = null;
}
if (this.rateToUsd != null) {
json[r'rateToUsd'] = this.rateToUsd;
} else {
json[r'rateToUsd'] = null;
}
if (this.rateDate != null) {
json[r'rateDate'] = this.rateDate!.toUtc().toIso8601String();
} else {
json[r'rateDate'] = null;
}
if (this.dailyPercentageDifference != null) {
json[r'dailyPercentageDifference'] = this.dailyPercentageDifference;
} else {
json[r'dailyPercentageDifference'] = null;
}
return json;
}