Этот репозиторий содержит Flutter плагины для платформы ОС Аврора.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*
|
|
|
|
* Copyright (C) 2023 Open Mobile Platform LLC.
|
|
|
|
*/
|
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
|
|
|
|
part 'user_entity_freezed.freezed.dart';
|
|
|
|
part 'user_entity_freezed.g.dart';
|
|
|
|
|
|
|
|
@freezed
|
|
|
|
class UserEntityFreezed with _$UserEntityFreezed {
|
|
|
|
const factory UserEntityFreezed({
|
|
|
|
required String name,
|
|
|
|
required String email,
|
|
|
|
required int age,
|
|
|
|
}) = _UserEntityFreezed;
|
|
|
|
|
|
|
|
factory UserEntityFreezed.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$UserEntityFreezedFromJson(json);
|
|
|
|
}
|