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