LiaCountrySettings.fromJson constructor

LiaCountrySettings.fromJson(
  1. Map json_
)

Implementation

LiaCountrySettings.fromJson(core.Map json_)
    : this(
        about: json_.containsKey('about')
            ? LiaAboutPageSettings.fromJson(
                json_['about'] as core.Map<core.String, core.dynamic>)
            : null,
        country: json_.containsKey('country')
            ? json_['country'] as core.String
            : null,
        hostedLocalStorefrontActive:
            json_.containsKey('hostedLocalStorefrontActive')
                ? json_['hostedLocalStorefrontActive'] as core.bool
                : null,
        inventory: json_.containsKey('inventory')
            ? LiaInventorySettings.fromJson(
                json_['inventory'] as core.Map<core.String, core.dynamic>)
            : null,
        omnichannelExperience: json_.containsKey('omnichannelExperience')
            ? LiaOmnichannelExperience.fromJson(json_['omnichannelExperience']
                as core.Map<core.String, core.dynamic>)
            : null,
        onDisplayToOrder: json_.containsKey('onDisplayToOrder')
            ? LiaOnDisplayToOrderSettings.fromJson(json_['onDisplayToOrder']
                as core.Map<core.String, core.dynamic>)
            : null,
        posDataProvider: json_.containsKey('posDataProvider')
            ? LiaPosDataProvider.fromJson(json_['posDataProvider']
                as core.Map<core.String, core.dynamic>)
            : null,
        storePickupActive: json_.containsKey('storePickupActive')
            ? json_['storePickupActive'] as core.bool
            : null,
      );