toEntity method

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

Implementation

@override
DialogEntity toEntity({String? appId}) {
  return DialogEntity(
    appId: appId,
    title: (title != null) ? title : null,
    description: (description != null) ? description : null,
    bodyComponents: (bodyComponents != null)
        ? bodyComponents!.map((item) => item.toEntity(appId: appId)).toList()
        : null,
    backgroundOverride: (backgroundOverride != null)
        ? backgroundOverride!.toEntity(appId: appId)
        : null,
    layout: (layout != null) ? layout!.index : null,
    includeHeading: (includeHeading != null) ? includeHeading : null,
    gridViewId: (gridView != null) ? gridView!.documentID : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
  );
}