UGoldTradeLimitResponse.fromMap constructor
UGoldTradeLimitResponse.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UGoldTradeLimitResponse.fromMap(Map<String, dynamic> json) => UGoldTradeLimitResponse(
type: json["type"],
asset: json["asset"],
maxVolume: json["maxVolume"] == null ? null : (json["maxVolume"] as num).toDouble(),
usedVolume: json["usedVolume"] == null ? null : (json["usedVolume"] as num).toDouble(),
remainingVolume: json["remainingVolume"] == null ? null : (json["remainingVolume"] as num).toDouble(),
interval: json["interval"],
resetsAt: json["resetsAt"],
side: TagGoldOrderSide.values.firstWhereOrNull((TagGoldOrderSide e) => e.number == json["side"]),
windowStart: json["windowStart"],
windowEnd: json["windowEnd"],
);