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