toJson method
Implementation
@override
Map<String, dynamic> toJson() {
return {
"types":
types.map((k, v) => MapEntry(k, v.map((e) => e.toJson()).toList())),
"domain": domain,
"message": message,
"primaryType": primaryType,
"version": version.version
};
}