fromJson method

  1. @override
AssetAmount fromJson(
  1. Map<String, dynamic> json
)

Implementation

@override
AssetAmount fromJson(Map<String, dynamic> json) {
  return AssetAmount.fromQuantity(
      AssetCode.fromJson(json['value']['assetCode'] as String),
      json['value']['quantity'] as String);
}