toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
    _json[r'account'] = account;
    _json[r'isMint'] = isMint;
    _json[r'isOwner'] = isOwner;
    _json[r'isTokenAccount'] = isTokenAccount;
  if (owner != null) {
    _json[r'owner'] = owner;
  } else {
    _json[r'owner'] = null;
  }
  if (program != null) {
    _json[r'program'] = program;
  } else {
    _json[r'program'] = null;
  }
  if (tokens != null) {
    _json[r'tokens'] = tokens;
  } else {
    _json[r'tokens'] = null;
  }
  return _json;
}