toJson method
Returns a JSON representation of this.
Implementation
@override
Map<String, Object?> toJson() => {
'runtimeType': 'SqlDeclare',
'name': name.toJson(),
'binary': binary,
'sensitive': (sensitive == null
? const None().toJson()
: Option.fromValue(sensitive).toJson()),
'scroll': (scroll == null
? const None().toJson()
: Option.fromValue(scroll).toJson()),
'hold': (hold == null
? const None().toJson()
: Option.fromValue(hold).toJson()),
'query': query.toJson(),
};