toJson method

Map<String, dynamic> toJson()

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.photo != null) {
    json[r'photo'] = this.photo;
  } else {
    json[r'photo'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.rejectedAt != null) {
    json[r'rejected_at'] = this.rejectedAt!.toUtc().toIso8601String();
  } else {
    json[r'rejected_at'] = null;
  }
  if (this.isActive != null) {
    json[r'is_active'] = this.isActive;
  } else {
    json[r'is_active'] = null;
  }
  return json;
}