toJson method
Encodes this value to its wire object.
Implementation
Map<String, Object?> toJson() {
final result = <String, Object?>{};
result['configOptions'] = <Object?>[
for (final item in configOptions) sessionConfigOptionCodec.encode(item),
];
if (meta != null) {
result['_meta'] = meta!.toObject();
}
return result;
}