Item.fromJson constructor
Implementation
factory Item.fromJson(Map<String, dynamic> json) => Item(
id: json["id"],
code: json["code"],
type: json["type"],
mainExchange: json["main_exchange"],
createdAt: json["created_at"] == null
? null
: DateTime.parse(json["created_at"]),
updatedAt: json["updated_at"] == null
? null
: DateTime.parse(json["updated_at"]),
name: json["name"],
plural: json["plural"],
);