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