toJson method
Implementation
Map<String, dynamic> toJson() {
final ionBinary = this.ionBinary;
final ionText = this.ionText;
return {
if (ionBinary != null) 'IonBinary': base64Encode(ionBinary),
if (ionText != null) 'IonText': ionText,
};
}