mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
* chore(mobile): example freezed implementation on some models * Don't commit Freezed generated code * Freezed easy pass * Formatting fix * Generate Flutter debugging info
21 lines
587 B
Dart
21 lines
587 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'asset_face.model.freezed.dart';
|
|
|
|
// Model for an asset face stored in the server
|
|
@freezed
|
|
abstract class AssetFace with _$AssetFace {
|
|
const factory AssetFace({
|
|
required String id,
|
|
required String assetId,
|
|
String? personId,
|
|
required int imageWidth,
|
|
required int imageHeight,
|
|
required int boundingBoxX1,
|
|
required int boundingBoxY1,
|
|
required int boundingBoxX2,
|
|
required int boundingBoxY2,
|
|
required String sourceType,
|
|
}) = _AssetFace;
|
|
}
|