toEntity method

  1. @override
SimpleImageEntity toEntity({
  1. String? appId,
})
override

Implementation

@override
SimpleImageEntity toEntity({String? appId}) {
  return SimpleImageEntity(
    appId: appId,
    description: (description != null) ? description : null,
    imageId: (image != null) ? image!.documentID : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
  );
}