작성
·
428
1
import 'package:freezed_annotation/freezed_annotation.dart';
part 'photo.freezed.dart';
part 'photo.g.dart';
@freezed
class Photo with _$Photo {
factory Photo({
required int id,
required String tags,
@JsonKey(name: 'previewURL') required String previewUrl,
}) = _Photo;
factory Photo.fromJson(Map<String, dynamic> json) => _$PhotoFromJson(json);
}