// GENERATED CODE - DO NOT MODIFY BY HAND part of 'user_dto.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** UsersDto _$UsersDtoFromJson(Map json) => UsersDto( items: (json['items'] as List?) ?.map((e) => UserDto.fromJson(e as Map)) .toList(), count: (json['count'] as num?)?.toInt(), limit: (json['limit'] as num?)?.toInt(), countAll: (json['countAll'] as num?)?.toInt(), pagesCount: (json['pagesCount'] as num?)?.toInt(), pageNumber: (json['pageNumber'] as num?)?.toInt(), hasPrevPage: json['hasPrevPage'] as bool?, hasNextPage: json['hasNextPage'] as bool?, ); UserDto _$UserDtoFromJson(Map json) => UserDto( model: json['model'] == null ? null : UserDataDto.fromJson(json['model'] as Map), age: (json['age'] as num?)?.toInt(), distance: (json['distance'] as num?)?.toDouble(), ); LocationDto _$LocationDtoFromJson(Map json) => LocationDto( lat: (json['lat'] as num?)?.toDouble(), lon: (json['lon'] as num?)?.toDouble(), ); UserDataDto _$UserDataDtoFromJson(Map json) => UserDataDto( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, surname: json['surname'] as String?, description: json['description'] as String?, image: json['image'] as String?, gender: json['gender'] as String?, dateOfBirth: json['dateOfBirth'] as String?, location: json['location'] == null ? null : LocationDto.fromJson(json['location'] as Map), );