forked from eatvio/eatvio_app
17 lines
381 B
Dart
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);
|
|
}
|