PacketIntervals.fromJson constructor

PacketIntervals.fromJson(
  1. Map json_
)

Implementation

PacketIntervals.fromJson(core.Map json_)
    : this(
        avgMs:
            json_.containsKey('avgMs') ? json_['avgMs'] as core.String : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        maxMs:
            json_.containsKey('maxMs') ? json_['maxMs'] as core.String : null,
        minMs:
            json_.containsKey('minMs') ? json_['minMs'] as core.String : null,
        numIntervals: json_.containsKey('numIntervals')
            ? json_['numIntervals'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );