toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.email != null) {
    json[r'email'] = this.email;
  } else {
    json[r'email'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.subStatus != null) {
    json[r'sub_status'] = this.subStatus;
  } else {
    json[r'sub_status'] = null;
  }
  if (this.action != null) {
    json[r'action'] = this.action;
  } else {
    json[r'action'] = null;
  }
  if (this.processedAt != null) {
    json[r'processed_at'] = this.processedAt!.toUtc().toIso8601String();
  } else {
    json[r'processed_at'] = null;
  }
  return json;
}