TimeInterval.fromJson constructor

TimeInterval.fromJson(
  1. Map json_
)

Implementation

TimeInterval.fromJson(core.Map json_)
    : this(
        end: json_.containsKey('end')
            ? DateTime.fromJson(
                json_['end'] as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        start: json_.containsKey('start')
            ? DateTime.fromJson(
                json_['start'] as core.Map<core.String, core.dynamic>)
            : null,
      );