UGoldOrderTransactionResponse.fromMap constructor
UGoldOrderTransactionResponse.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UGoldOrderTransactionResponse.fromMap(Map<String, dynamic> json) => UGoldOrderTransactionResponse(
id: json["id"] ?? "",
createdAt: json["createdAt"] == null ? null : DateTime.parse(json["createdAt"]),
entries: json["entries"] == null
? <UGoldWalletEntryResponse>[]
: List<UGoldWalletEntryResponse>.from(json["entries"]!.map((dynamic x) => UGoldWalletEntryResponse.fromMap(x))),
);