ServiceStoreConfig.fromJson constructor

ServiceStoreConfig.fromJson(
  1. Map json_
)

Implementation

ServiceStoreConfig.fromJson(core.Map json_)
    : this(
        cutoffConfig: json_.containsKey('cutoffConfig')
            ? ServiceStoreConfigCutoffConfig.fromJson(
                json_['cutoffConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        serviceRadius: json_.containsKey('serviceRadius')
            ? Distance.fromJson(
                json_['serviceRadius'] as core.Map<core.String, core.dynamic>)
            : null,
        storeCodes: json_.containsKey('storeCodes')
            ? (json_['storeCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        storeServiceType: json_.containsKey('storeServiceType')
            ? json_['storeServiceType'] as core.String
            : null,
      );