TimePeriod.fromJson constructor

TimePeriod.fromJson(
  1. Map json_
)

Implementation

TimePeriod.fromJson(core.Map json_)
    : this(
        closeDay: json_.containsKey('closeDay')
            ? json_['closeDay'] as core.String
            : null,
        closeTime: json_.containsKey('closeTime')
            ? TimeOfDay.fromJson(
                json_['closeTime'] as core.Map<core.String, core.dynamic>)
            : null,
        openDay: json_.containsKey('openDay')
            ? json_['openDay'] as core.String
            : null,
        openTime: json_.containsKey('openTime')
            ? TimeOfDay.fromJson(
                json_['openTime'] as core.Map<core.String, core.dynamic>)
            : null,
      );