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