toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.publicId != null) {
json[r'publicId'] = this.publicId;
} else {
json[r'publicId'] = null;
}
if (this.requestId != null) {
json[r'requestId'] = this.requestId;
} else {
json[r'requestId'] = null;
}
if (this.codeEnvoi != null) {
json[r'codeEnvoi'] = this.codeEnvoi;
} else {
json[r'codeEnvoi'] = null;
}
if (this.montant != null) {
json[r'montant'] = this.montant;
} else {
json[r'montant'] = null;
}
if (this.fraisEnvoi != null) {
json[r'fraisEnvoi'] = this.fraisEnvoi;
} else {
json[r'fraisEnvoi'] = null;
}
if (this.reduction != null) {
json[r'reduction'] = this.reduction;
} else {
json[r'reduction'] = null;
}
if (this.fraisInclus != null) {
json[r'fraisInclus'] = this.fraisInclus;
} else {
json[r'fraisInclus'] = null;
}
if (this.total != null) {
json[r'total'] = this.total;
} else {
json[r'total'] = null;
}
if (this.statusTransaction != null) {
json[r'statusTransaction'] = this.statusTransaction;
} else {
json[r'statusTransaction'] = null;
}
if (this.typeTransaction != null) {
json[r'typeTransaction'] = this.typeTransaction;
} else {
json[r'typeTransaction'] = null;
}
if (this.typeOperation != null) {
json[r'typeOperation'] = this.typeOperation;
} else {
json[r'typeOperation'] = null;
}
if (this.nomExpediteur != null) {
json[r'nomExpediteur'] = this.nomExpediteur;
} else {
json[r'nomExpediteur'] = null;
}
if (this.prenomExpediteur != null) {
json[r'prenomExpediteur'] = this.prenomExpediteur;
} else {
json[r'prenomExpediteur'] = null;
}
if (this.telephoneExpediteur != null) {
json[r'telephoneExpediteur'] = this.telephoneExpediteur;
} else {
json[r'telephoneExpediteur'] = null;
}
if (this.nomDestinataire != null) {
json[r'nomDestinataire'] = this.nomDestinataire;
} else {
json[r'nomDestinataire'] = null;
}
if (this.prenomDestinataire != null) {
json[r'prenomDestinataire'] = this.prenomDestinataire;
} else {
json[r'prenomDestinataire'] = null;
}
if (this.telephoneDestinataire != null) {
json[r'telephoneDestinataire'] = this.telephoneDestinataire;
} else {
json[r'telephoneDestinataire'] = null;
}
if (this.villeDestinataire != null) {
json[r'villeDestinataire'] = this.villeDestinataire;
} else {
json[r'villeDestinataire'] = null;
}
if (this.paysDestinataire != null) {
json[r'paysDestinataire'] = this.paysDestinataire;
} else {
json[r'paysDestinataire'] = null;
}
if (this.dateTransaction != null) {
json[r'dateTransaction'] = this.dateTransaction!.toUtc().toIso8601String();
} else {
json[r'dateTransaction'] = null;
}
return json;
}