ServiceResponseDto class

Annotations
  • @freezed

Constructors

ServiceResponseDto.new({required int id, required String slug, required String title, required String? description, required String priceType, required String priceUnit, required int? fixedPrice, required int? minimumPrice, required int? maximumPrice, required String visibility, required String subscriptionTier, required String createdAt, required String updatedAt, required double? distanceInKm, required double? averageReviewRate, required int soldCounter, required List<ActiveStorageImageResponseDto> images, required List<CategoryResponseDto> categories, required ServiceResponseDtoHandyman handyman, required ServiceResponseDtoServiceLocation? serviceLocation})
const
factory
ServiceResponseDto.fromJson(Map<String, dynamic> json)
factory

Properties

averageReviewRate double?
no setterinherited
categories List<CategoryResponseDto>
no setterinherited
copyWith → $ServiceResponseDtoCopyWith<ServiceResponseDto>
Create a copy of ServiceResponseDto with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt String
no setterinherited
description String?
no setterinherited
distanceInKm double?
no setterinherited
fixedPrice int?
no setterinherited
handyman ServiceResponseDtoHandyman
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
no setterinherited
images List<ActiveStorageImageResponseDto>
no setterinherited
maximumPrice int?
no setterinherited
minimumPrice int?
no setterinherited
priceType String
no setterinherited
priceUnit String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceLocation ServiceResponseDtoServiceLocation?
no setterinherited
slug String
no setterinherited
soldCounter int
no setterinherited
subscriptionTier String
no setterinherited
title String
no setterinherited
updatedAt String
no setterinherited
visibility String
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this ServiceResponseDto to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited