SpecialHourPeriod.fromJson constructor

SpecialHourPeriod.fromJson(
  1. Map json_
)

Implementation

SpecialHourPeriod.fromJson(core.Map json_)
    : this(
        closeTime: json_.containsKey('closeTime')
            ? TimeOfDay.fromJson(
                json_['closeTime'] as core.Map<core.String, core.dynamic>)
            : null,
        closed:
            json_.containsKey('closed') ? json_['closed'] as core.bool : null,
        endDate: json_.containsKey('endDate')
            ? Date.fromJson(
                json_['endDate'] as core.Map<core.String, core.dynamic>)
            : null,
        openTime: json_.containsKey('openTime')
            ? TimeOfDay.fromJson(
                json_['openTime'] as core.Map<core.String, core.dynamic>)
            : null,
        startDate: json_.containsKey('startDate')
            ? Date.fromJson(
                json_['startDate'] as core.Map<core.String, core.dynamic>)
            : null,
      );