Sucursale.fromMap constructor
Sucursale.fromMap(
- Map<String, dynamic> json
)
Implementation
factory Sucursale.fromMap(Map<String, dynamic> json) => Sucursale(
code: json["code"],
description: json["description"],
address: json["address"],
companyCode: json["company_code"],
isDisabled: json["is_disabled"],
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"],
);