$Interval.fromJson constructor Null safety

$Interval.fromJson(
  1. Map _json
)

Implementation

$Interval.fromJson(core.Map _json)
    : this(
        endTime: _json.containsKey('endTime')
            ? _json['endTime'] as core.String
            : null,
        startTime: _json.containsKey('startTime')
            ? _json['startTime'] as core.String
            : null,
      );