UGoldCreditFacilityResponse.fromMap constructor
UGoldCreditFacilityResponse.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UGoldCreditFacilityResponse.fromMap(Map<String, dynamic> json) => UGoldCreditFacilityResponse(
type: json["type"],
asset: json["asset"],
creditUsed: json["creditUsed"] == null ? null : (json["creditUsed"] as num).toDouble(),
availableCredit: json["availableCredit"] == null ? null : (json["availableCredit"] as num).toDouble(),
limits: json["limits"] == null
? <UGoldCreditLimitResponse>[]
: List<UGoldCreditLimitResponse>.from(json["limits"]!.map((dynamic x) => UGoldCreditLimitResponse.fromMap(x))),
);