toJson method

  1. @override
Map<String, dynamic> toJson()
override

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
  };
}