toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'network_identifier': networkIdentifier.toJson(),
    'operator': operator,
    'max_block': maxBlock,
    'offset': offset,
    'limit': limit,
    'transaction_identifier': transactionIdentifier?.toJson(),
    'account_identifier': accountIdentifier?.toJson(),
    'coin_identifier': coinIdentifier?.toJson(),
    'currency': currency?.toJson(),
    'status': status,
    'type': type,
    'address': address,
    'success': success,
  }..removeWhere((key, value) => value == null);
}