MoreHours.fromJson constructor

MoreHours.fromJson(
  1. Map json_
)

Implementation

MoreHours.fromJson(core.Map json_)
    : this(
        hoursTypeId: json_.containsKey('hoursTypeId')
            ? json_['hoursTypeId'] as core.String
            : null,
        periods: json_.containsKey('periods')
            ? (json_['periods'] as core.List)
                .map((value) => TimePeriod.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );