47 lines
1.8 KiB
Dart
47 lines
1.8 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'user_dto.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
UsersDto _$UsersDtoFromJson(Map<String, dynamic> json) => UsersDto(
|
|
items: (json['items'] as List<dynamic>?)
|
|
?.map((e) => UserDto.fromJson(e as Map<String, dynamic>))
|
|
.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<String, dynamic> json) => UserDto(
|
|
model: json['model'] == null
|
|
? null
|
|
: UserDataDto.fromJson(json['model'] as Map<String, dynamic>),
|
|
age: (json['age'] as num?)?.toInt(),
|
|
distance: (json['distance'] as num?)?.toDouble(),
|
|
);
|
|
|
|
LocationDto _$LocationDtoFromJson(Map<String, dynamic> json) => LocationDto(
|
|
lat: (json['lat'] as num?)?.toDouble(),
|
|
lon: (json['lon'] as num?)?.toDouble(),
|
|
);
|
|
|
|
UserDataDto _$UserDataDtoFromJson(Map<String, dynamic> 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<String, dynamic>),
|
|
);
|