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;
  }
    json[r'name'] = this.name;
  if (this.firstName != null) {
    json[r'first_name'] = this.firstName;
  } else {
    json[r'first_name'] = null;
  }
  if (this.ref != null) {
    json[r'ref'] = this.ref;
  } else {
    json[r'ref'] = null;
  }
  if (this.photoCard != null) {
    json[r'photo_card'] = this.photoCard;
  } else {
    json[r'photo_card'] = null;
  }
  return json;
}