Policies.fromJson constructor

Policies.fromJson(
  1. Map json_
)

Implementation

Policies.fromJson(core.Map json_)
    : this(
        allInclusiveAvailable: json_.containsKey('allInclusiveAvailable')
            ? json_['allInclusiveAvailable'] as core.bool
            : null,
        allInclusiveAvailableException:
            json_.containsKey('allInclusiveAvailableException')
                ? json_['allInclusiveAvailableException'] as core.String
                : null,
        allInclusiveOnly: json_.containsKey('allInclusiveOnly')
            ? json_['allInclusiveOnly'] as core.bool
            : null,
        allInclusiveOnlyException:
            json_.containsKey('allInclusiveOnlyException')
                ? json_['allInclusiveOnlyException'] as core.String
                : null,
        checkinTime: json_.containsKey('checkinTime')
            ? TimeOfDay.fromJson(
                json_['checkinTime'] as core.Map<core.String, core.dynamic>)
            : null,
        checkinTimeException: json_.containsKey('checkinTimeException')
            ? json_['checkinTimeException'] as core.String
            : null,
        checkoutTime: json_.containsKey('checkoutTime')
            ? TimeOfDay.fromJson(
                json_['checkoutTime'] as core.Map<core.String, core.dynamic>)
            : null,
        checkoutTimeException: json_.containsKey('checkoutTimeException')
            ? json_['checkoutTimeException'] as core.String
            : null,
        kidsStayFree: json_.containsKey('kidsStayFree')
            ? json_['kidsStayFree'] as core.bool
            : null,
        kidsStayFreeException: json_.containsKey('kidsStayFreeException')
            ? json_['kidsStayFreeException'] as core.String
            : null,
        maxChildAge: json_.containsKey('maxChildAge')
            ? json_['maxChildAge'] as core.int
            : null,
        maxChildAgeException: json_.containsKey('maxChildAgeException')
            ? json_['maxChildAgeException'] as core.String
            : null,
        maxKidsStayFreeCount: json_.containsKey('maxKidsStayFreeCount')
            ? json_['maxKidsStayFreeCount'] as core.int
            : null,
        maxKidsStayFreeCountException:
            json_.containsKey('maxKidsStayFreeCountException')
                ? json_['maxKidsStayFreeCountException'] as core.String
                : null,
        paymentOptions: json_.containsKey('paymentOptions')
            ? PaymentOptions.fromJson(json_['paymentOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        smokeFreeProperty: json_.containsKey('smokeFreeProperty')
            ? json_['smokeFreeProperty'] as core.bool
            : null,
        smokeFreePropertyException:
            json_.containsKey('smokeFreePropertyException')
                ? json_['smokeFreePropertyException'] as core.String
                : null,
      );