PMU-PIbd-31-Potapov-N-S/lib/data/dto/user_dto.dart

35 lines
709 B
Dart
Raw Normal View History

2024-12-13 00:54:01 +04:00
import 'package:json_annotation/json_annotation.dart';
part 'user_dto.g.dart';
2024-12-13 00:54:01 +04:00
@JsonSerializable(createToJson: false)
class UserDto {
final int? id;
final String? name;
final String? surname;
final String? description;
final String? image;
final String? gender;
final String? dateOfBirth;
final double? lat;
final double? lon;
final int? age;
final double? distance;
const UserDto(
{this.id,
this.name,
this.surname,
this.description,
this.image,
this.gender,
this.dateOfBirth,
this.lat,
this.lon,
this.age,
this.distance});
factory UserDto.fromJson(Map<String, dynamic> json) =>
_$UserDtoFromJson(json);
}