privacy_terms.dart 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. class PrivacyTerms {
  2. String? privacyTermsUrl;
  3. String? termsOfServiceUrl;
  4. PrivacyTerms({
  5. this.privacyTermsUrl,
  6. this.termsOfServiceUrl,
  7. });
  8. PrivacyTerms copyWith({
  9. String? privacyTermsUrl,
  10. String? termsOfServiceUrl,
  11. }) {
  12. return PrivacyTerms(
  13. privacyTermsUrl: privacyTermsUrl ?? this.privacyTermsUrl,
  14. termsOfServiceUrl: termsOfServiceUrl ?? this.termsOfServiceUrl,
  15. );
  16. }
  17. Map<String, dynamic> toJson() {
  18. return {
  19. 'privacyTermsUrl': privacyTermsUrl,
  20. 'termsOfServiceUrl': termsOfServiceUrl,
  21. };
  22. }
  23. factory PrivacyTerms.fromJson(Map<String, dynamic> json) {
  24. return PrivacyTerms(
  25. privacyTermsUrl: json['privacyTermsUrl'] as String?,
  26. termsOfServiceUrl: json['termsOfServiceUrl'] as String?,
  27. );
  28. }
  29. @override
  30. String toString() =>
  31. "PrivacyTerms(privacyTermsUrl: $privacyTermsUrl,termsOfServiceUrl: $termsOfServiceUrl)";
  32. @override
  33. int get hashCode => Object.hash(privacyTermsUrl, termsOfServiceUrl);
  34. @override
  35. bool operator ==(Object other) =>
  36. identical(this, other) ||
  37. other is PrivacyTerms &&
  38. runtimeType == other.runtimeType &&
  39. privacyTermsUrl == other.privacyTermsUrl &&
  40. termsOfServiceUrl == other.termsOfServiceUrl;
  41. }