Map<String, Object?> toJson() { var type = this.type; var identifier = this.identifier; final json = <String, Object?>{}; json[r'type'] = type.value; json[r'identifier'] = identifier; return json; }