20 lines
551 B
Dart
20 lines
551 B
Dart
// 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;
|
|
}
|