PathPaymentStrictSendOperationResponse.fromJson constructor

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

Implementation

factory PathPaymentStrictSendOperationResponse.fromJson(
        Map<String, dynamic> json) =>
    new PathPaymentStrictSendOperationResponse(
        json['amount'] as String,
        json['source_amount'] as String,
        json['destination_min'] as String,
        json['from'] == null ? null : json['from'],
        json['from_muxed'] == null ? null : json['from_muxed'],
        json['from_muxed_id'] == null
            ? null
            : json['from_muxed_id'] as String,
        json['to'] == null ? null : json['to'],
        json['to_muxed'] == null ? null : json['to_muxed'],
        json['to_muxed_id'] == null ? null : json['to_muxed_id'] as String,
        json['asset_type'] as String,
        json['asset_code'] as String,
        json['asset_issuer'] as String,
        json['source_asset_type'] as String,
        json['source_asset_code'] as String,
        json['source_asset_issuer'] as String,
        (json['path'] as List)
            ?.map((e) => e == null
                ? null
                : new Asset.fromJson(e as Map<String, dynamic>))
            ?.toList())
      ..id = int.parse(json['id'] as String)
      ..sourceAccount =
          json['source_account'] == null ? null : json['source_account']
      ..sourceAccountMuxed = json['source_account_muxed'] == null
          ? null
          : json['source_account_muxed']
      ..sourceAccountMuxedId = json['source_account_muxed_id'] == null
          ? null
          : json['source_account_muxed_id'] as String
      ..pagingToken = json['paging_token'] as String
      ..createdAt = json['created_at'] as String
      ..transactionHash = json['transaction_hash'] as String
      ..transactionSuccessful = json['transaction_successful'] as bool
      ..type = json['type'] as String
      ..links = json['_links'] == null
          ? null
          : new OperationResponseLinks.fromJson(
              json['_links'] as Map<String, dynamic>);