toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (fee != null) {
_json[r'fee'] = fee;
} else {
_json[r'fee'] = null;
}
if (innerInstructions != null) {
_json[r'innerInstructions'] = innerInstructions;
} else {
_json[r'innerInstructions'] = null;
}
if (preBalances != null) {
_json[r'preBalances'] = preBalances;
} else {
_json[r'preBalances'] = null;
}
_json[r'postBalances'] = postBalances;
if (logMessages != null) {
_json[r'logMessages'] = logMessages;
} else {
_json[r'logMessages'] = null;
}
if (preTokenBalances != null) {
_json[r'preTokenBalances'] = preTokenBalances;
} else {
_json[r'preTokenBalances'] = null;
}
if (postTokenBalances != null) {
_json[r'postTokenBalances'] = postTokenBalances;
} else {
_json[r'postTokenBalances'] = null;
}
if (err != null) {
_json[r'err'] = err;
} else {
_json[r'err'] = null;
}
return _json;
}