Warehouse.fromJson constructor

Warehouse.fromJson(
  1. Map json_
)

Implementation

Warehouse.fromJson(core.Map json_)
    : this(
        businessDayConfig: json_.containsKey('businessDayConfig')
            ? BusinessDayConfig.fromJson(json_['businessDayConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        cutoffTime: json_.containsKey('cutoffTime')
            ? WarehouseCutoffTime.fromJson(
                json_['cutoffTime'] as core.Map<core.String, core.dynamic>)
            : null,
        handlingDays: json_.containsKey('handlingDays')
            ? json_['handlingDays'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        shippingAddress: json_.containsKey('shippingAddress')
            ? Address.fromJson(json_['shippingAddress']
                as core.Map<core.String, core.dynamic>)
            : null,
      );