toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (source != null) {
    _json['source'] = source;
  }
  if (rpcCode != null) {
    _json['rpcCode'] = rpcCode;
  }
  if (rpcMessage != null) {
    _json['rpcMessage'] = rpcMessage;
  }
  if (transactionErrorJson != null) {
    _json['transactionErrorJson'] = transactionErrorJson;
  }
  if (logs != null) {
    _json['logs'] = logs;
  }
  if (unitsConsumed != null) {
    _json['unitsConsumed'] = unitsConsumed;
  }
  if (innerInstructionsJson != null) {
    _json['innerInstructionsJson'] = innerInstructionsJson;
  }
  return _json;
}