core.Map<core.String, core.dynamic> toJson() { final pattern = this.pattern; final type = this.type; return {'pattern': ?pattern, 'type': ?type}; }