Item.fromJson constructor

Item.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Item.fromJson(Map<String, dynamic> json) => Item(
      bankId: json["bank_id"],
      currencyId: json["currency_id"],
      accountNumber: json["account_number"],
      holderName: json["holder_name"],
      ciNumber: json["ci_number"],
      ciComplement: json["ci_complement"],
      email: json["email"],
      cellphone: json["cellphone"],
      organizationId: json["organization_id"],
      updatedAt: json["updated_at"] == null
          ? null
          : DateTime.parse(json["updated_at"]),
      createdAt: json["created_at"] == null
          ? null
          : DateTime.parse(json["created_at"]),
      id: json["id"],
    );