toEntity method

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

Implementation

@override
AppEntity toEntity({String? appId}) {
  return AppEntity(
    ownerID: ownerID,
    title: (title != null) ? title : null,
    homeURL: (homeURL != null) ? homeURL : null,
    email: (email != null) ? email : null,
    description: (description != null) ? description : null,
    appStatus: (appStatus != null) ? appStatus!.index : null,
    anonymousProfilePhotoId: (anonymousProfilePhoto != null)
        ? anonymousProfilePhoto!.documentID
        : null,
    homePages: (homePages != null) ? homePages!.toEntity(appId: appId) : null,
    logoId: (logo != null) ? logo!.documentID : null,
    styleFamily: (styleFamily != null) ? styleFamily : null,
    styleName: (styleName != null) ? styleName : null,
    autoPrivileged1: (autoPrivileged1 != null) ? autoPrivileged1 : null,
    isFeatured: (isFeatured != null) ? isFeatured : null,
    includeShippingAddress:
        (includeShippingAddress != null) ? includeShippingAddress : null,
    includeInvoiceAddress:
        (includeInvoiceAddress != null) ? includeInvoiceAddress : null,
    includeSubscriptions:
        (includeSubscriptions != null) ? includeSubscriptions : null,
    welcomeMessage: (welcomeMessage != null) ? welcomeMessage : null,
  );
}