skip_geo.dart 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. class SkipGeo {
  2. String? ipsUrl;
  3. String? ipsMd5;
  4. String? domainsUrl;
  5. String? domainsMd5;
  6. SkipGeo({
  7. this.ipsUrl,
  8. this.ipsMd5,
  9. this.domainsUrl,
  10. this.domainsMd5,
  11. });
  12. SkipGeo copyWith({
  13. String? ipsUrl,
  14. String? ipsMd5,
  15. String? domainsUrl,
  16. String? domainsMd5,
  17. }) {
  18. return SkipGeo(
  19. ipsUrl: ipsUrl ?? this.ipsUrl,
  20. ipsMd5: ipsMd5 ?? this.ipsMd5,
  21. domainsUrl: domainsUrl ?? this.domainsUrl,
  22. domainsMd5: domainsMd5 ?? this.domainsMd5,
  23. );
  24. }
  25. Map<String, dynamic> toJson() {
  26. return {
  27. 'ipsUrl': ipsUrl,
  28. 'ipsMd5': ipsMd5,
  29. 'domainsUrl': domainsUrl,
  30. 'domainsMd5': domainsMd5,
  31. };
  32. }
  33. factory SkipGeo.fromJson(Map<String, dynamic> json) {
  34. return SkipGeo(
  35. ipsUrl: json['ipsUrl'] as String?,
  36. ipsMd5: json['ipsMd5'] as String?,
  37. domainsUrl: json['domainsUrl'] as String?,
  38. domainsMd5: json['domainsMd5'] as String?,
  39. );
  40. }
  41. @override
  42. String toString() =>
  43. "SkipGeo(ipsUrl: $ipsUrl,ipsMd5: $ipsMd5,domainsUrl: $domainsUrl,domainsMd5: $domainsMd5)";
  44. @override
  45. int get hashCode => Object.hash(ipsUrl, ipsMd5, domainsUrl, domainsMd5);
  46. @override
  47. bool operator ==(Object other) =>
  48. identical(this, other) ||
  49. other is SkipGeo &&
  50. runtimeType == other.runtimeType &&
  51. ipsUrl == other.ipsUrl &&
  52. ipsMd5 == other.ipsMd5 &&
  53. domainsUrl == other.domainsUrl &&
  54. domainsMd5 == other.domainsMd5;
  55. }