ChangeTrustOperationResponse.fromJson constructor

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

Implementation

factory ChangeTrustOperationResponse.fromJson(Map<String, dynamic> json) =>
    new ChangeTrustOperationResponse(
        json['trustor'] == null ? null : json['trustor'],
        json['trustor_muxed'] == null ? null : json['trustor_muxed'],
        json['trustor_muxed_id'] == null
            ? null
            : json['trustor_muxed_id'] as String,
        json['trustee'] == null ? null : json['trustee'],
        json['asset_type'] as String,
        json['asset_code'] as String,
        json['asset_issuer'] as String,
        json['limit'] as String)
      ..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>);