toEntity method

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

Implementation

@override
SimpleTextEntity toEntity({String? appId}) {
  return SimpleTextEntity(
    appId: appId,
    description: (description != null) ? description : null,
    title: (title != null) ? title : null,
    text: (text != null) ? text : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
    textAlign: (textAlign != null) ? textAlign!.index : null,
  );
}