TimeEvents.fromJson constructor

TimeEvents.fromJson(
  1. Map json_
)

Implementation

TimeEvents.fromJson(core.Map json_)
    : this(
        droppedAnnotationsCount: json_.containsKey('droppedAnnotationsCount')
            ? json_['droppedAnnotationsCount'] as core.int
            : null,
        droppedMessageEventsCount:
            json_.containsKey('droppedMessageEventsCount')
                ? json_['droppedMessageEventsCount'] as core.int
                : null,
        timeEvent: json_.containsKey('timeEvent')
            ? (json_['timeEvent'] as core.List)
                .map((value) => TimeEvent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );