Empresa.fromMap constructor

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

Implementation

factory Empresa.fromMap(Map<String, dynamic> json) => Empresa(
      code: json["code"],
      description: json["description"],
      businessName: json["business_name"],
      businessDoc: json["business_doc"],
      address: json["address"],
      isDisabled: json["is_disabled"],
      comment: json["comment"],
      imageLocation: json["image_location"],
      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"],
    );