implement example

This commit is contained in:
Sergey Penkovsky
2025-05-16 17:56:57 +03:00
parent a7dc2e0f27
commit 7740717fce
25 changed files with 1234 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import 'package:freezed_annotation/freezed_annotation.dart';
part 'post_model.freezed.dart';
part 'post_model.g.dart';
@freezed
class PostModel with _$PostModel {
const factory PostModel({
required int id,
required String title,
required String body,
}) = _PostModel;
factory PostModel.fromJson(Map<String, dynamic> json) =>
_$PostModelFromJson(json);
}