toEntity method

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

Implementation

@override
FaderEntity toEntity({String? appId}) {
  return FaderEntity(
    appId: appId,
    description: (description != null) ? description : null,
    animationMilliseconds:
        (animationMilliseconds != null) ? animationMilliseconds : null,
    imageSeconds: (imageSeconds != null) ? imageSeconds : null,
    items: (items != null)
        ? items!.map((item) => item.toEntity(appId: appId)).toList()
        : null,
    background:
        (background != null) ? background!.toEntity(appId: appId) : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
  );
}