toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'subjectId': this.subjectId.toString(),
'encoding': {
'type': this.type.toString(),
'encoding': this.encoding?.map((e) => e.toString())?.toList() ?? [],
}
};
}