toJson method

Map<String, dynamic> toJson ()

Implementation

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