Map<String, dynamic> toJson() { return <String, dynamic>{ if (errors != null) r'errors': errors, }; }