RipplePathFound.fromJson constructor
RipplePathFound.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RipplePathFound.fromJson(Map<String, dynamic> json) {
return RipplePathFound(
alternatives: ((json["alternatives"] as List?) ?? [])
.map((e) => Alternatives.fromJson(e))
.toList(),
destinationAccount: json['destination_account'] ?? "",
destinationAmount: json['destination_amount'],
destinationCurrencies: List<String>.from(json['destination_currencies']),
fullReply: json['full_reply'] ?? false,
sourceAccount: json['source_account'] ?? "",
status: json['status'] ?? "",
);
}