MinuteRange.fromJson constructor

MinuteRange.fromJson(
  1. Map _json
)

Implementation

MinuteRange.fromJson(core.Map _json)
    : this(
        endMinutesAgo: _json.containsKey('endMinutesAgo')
            ? _json['endMinutesAgo'] as core.int
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        startMinutesAgo: _json.containsKey('startMinutesAgo')
            ? _json['startMinutesAgo'] as core.int
            : null,
      );