Создание карточки в коллекции + экран поиска коллекции
This commit is contained in:
19
lib/models/crud_collection_dto.dart
Normal file
19
lib/models/crud_collection_dto.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
// To parse this JSON data, do
|
||||
//
|
||||
// final collectionDto = collectionDtoFromJson(jsonString);
|
||||
|
||||
import 'dart:convert';
|
||||
import 'dart:typed_data';
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'crud_collection_dto.freezed.dart';
|
||||
|
||||
@Freezed(copyWith: true, equal: true, fromJson: false, toJson: false)
|
||||
abstract class CrudCollectionDto with _$CrudCollectionDto {
|
||||
const factory CrudCollectionDto({
|
||||
required String desc,
|
||||
required String title,
|
||||
required bool isPublic,
|
||||
Uint8List? avatar,
|
||||
}) = _CrudCollectionDto;
|
||||
}
|
||||
Reference in New Issue
Block a user