Usuario.fromMap constructor

Usuario.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory Usuario.fromMap(Map<String, dynamic> json) => Usuario(
      code: json["code"],
      username: json["username"],
      companyCode: json["company_code"],
      fullName: json["full_name"],
      isDisabled: json["is_disabled"],
      passwordAttempts: json["password_attempts"],
      referenceCode: json["reference_code"],
      externalReference: json["external_reference"],
      createdAt: json["created_at"] == null ? null : DateTime.parse(json["created_at"]),
      createdBy: json["created_by"],
      writeAt: json["write_at"] == null ? null : DateTime.parse(json["write_at"]),
      writeBy: json["write_by"],
    );