SEP38Asset.fromJson constructor

SEP38Asset.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SEP38Asset.fromJson(Map<String, dynamic> json) =>
    SEP38Asset(json['asset'],
        sellDeliveryMethods: json['sell_delivery_methods'] == null
            ? null
            : List<Sep38SellDeliveryMethod>.from(json['sell_delivery_methods']
                .map((e) => Sep38SellDeliveryMethod.fromJson(e))),
        buyDeliveryMethods: json['buy_delivery_methods'] == null
            ? null
            : List<Sep38BuyDeliveryMethod>.from(json['buy_delivery_methods']
                .map((e) => Sep38BuyDeliveryMethod.fromJson(e))),
        countryCodes: json['country_codes'] == null
            ? null
            : List<String>.from(json['country_codes'].map((e) => e)));