UGoldTransactionResponse.fromMap constructor
UGoldTransactionResponse.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UGoldTransactionResponse.fromMap(Map<String, dynamic> json) => UGoldTransactionResponse(
id: json["id"] ?? "",
idempotencyKey: json["idempotencyKey"],
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))),
detail: json["detail"],
);