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