SystemUpdate.fromJson constructor

SystemUpdate.fromJson(
  1. Map json_
)

Implementation

SystemUpdate.fromJson(core.Map json_)
    : this(
        endMinutes: json_.containsKey('endMinutes')
            ? json_['endMinutes'] as core.int
            : null,
        freezePeriods: json_.containsKey('freezePeriods')
            ? (json_['freezePeriods'] as core.List)
                .map((value) => FreezePeriod.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        startMinutes: json_.containsKey('startMinutes')
            ? json_['startMinutes'] as core.int
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );