Files
eatvio_app/lib/features/diary/models/photo.dart
2024-09-18 16:14:00 +03:00

17 lines
381 B
Dart

import 'package:freezed_annotation/freezed_annotation.dart';
part 'photo.freezed.dart';
part 'photo.g.dart';
@freezed
class Photo with _$Photo {
const factory Photo({
required int id,
@JsonKey(name: 'original_name') required String originalName,
required String path,
}) = _Photo;
factory Photo.fromJson(Map<String, Object?> json) => _$PhotoFromJson(json);
}