Organization.fromJson constructor
Organization.fromJson(- Map<String, dynamic> json
)
Implementation
factory Organization.fromJson(Map<String, dynamic> json) => Organization(
id: json["id"],
nitNumber: json["nit_number"],
firstName: json["first_name"],
lastName: json["last_name"],
ciNumber: json["ci_number"],
ciExtension: json["ci_extension"],
ciComplement: json["ci_complement"],
email: json["email"],
cellphone: json["cellphone"],
password: json["password"],
type: json["type"],
calculator: json["calculator"],
legalRepresentativeFirstName: json["legal_representative_first_name"],
legalRepresentativeLastName: json["legal_representative_last_name"],
legalRepresentativeCiNumber: json["legal_representative_ci_number"],
legalRepresentativeCiExtension:
json["legal_representative_ci_extension"],
legalRepresentativeCiComplement:
json["legal_representative_ci_complement"],
legalRepresentativeEmail: json["legal_representative_email"],
legalRepresentativeCellphone: json["legal_representative_cellphone"],
rate: json["rate"],
active: json["active"],
createdAt: json["created_at"] == null
? null
: DateTime.parse(json["created_at"]),
updatedAt: json["updated_at"] == null
? null
: DateTime.parse(json["updated_at"]),
);