2026-08-05 12:00:49 -07:00
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
2025-07-23 01:17:52 +08:00
|
|
|
|
2026-08-05 12:00:49 -07:00
|
|
|
part 'asset_face.model.freezed.dart';
|
2025-07-23 01:17:52 +08:00
|
|
|
|
2026-08-05 12:00:49 -07:00
|
|
|
// Model for an asset face stored in the server
|
|
|
|
|
@freezed
|
|
|
|
|
abstract class AssetFace with _$AssetFace {
|
|
|
|
|
const factory AssetFace({
|
|
|
|
|
required String id,
|
|
|
|
|
required String assetId,
|
2025-07-23 01:17:52 +08:00
|
|
|
String? personId,
|
2026-08-05 12:00:49 -07:00
|
|
|
required int imageWidth,
|
|
|
|
|
required int imageHeight,
|
|
|
|
|
required int boundingBoxX1,
|
|
|
|
|
required int boundingBoxY1,
|
|
|
|
|
required int boundingBoxX2,
|
|
|
|
|
required int boundingBoxY2,
|
|
|
|
|
required String sourceType,
|
|
|
|
|
}) = _AssetFace;
|
2025-07-23 01:17:52 +08:00
|
|
|
}
|