toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.requestId != null) {
    json[r'requestId'] = this.requestId;
  } else {
    json[r'requestId'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.codeEnvoi != null) {
    json[r'codeEnvoi'] = this.codeEnvoi;
  } else {
    json[r'codeEnvoi'] = null;
  }
  if (this.etat != null) {
    json[r'etat'] = this.etat;
  } else {
    json[r'etat'] = null;
  }
  if (this.operation != null) {
    json[r'operation'] = this.operation;
  } else {
    json[r'operation'] = null;
  }
  if (this.date != null) {
    json[r'date'] = this.date!.toUtc().toIso8601String();
  } else {
    json[r'date'] = null;
  }
  return json;
}