toEntity method

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

Implementation

@override
ProfileEntity toEntity({String? appId}) {
  return ProfileEntity(
    appId: appId,
    description: (description != null) ? description : null,
    feedId: (feed != null) ? feed!.documentID : null,
    backgroundOverride: (backgroundOverride != null)
        ? backgroundOverride!.toEntity(appId: appId)
        : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
  );
}