TimeOfDay.fromJson constructor

TimeOfDay.fromJson(
  1. Map _json
)

Implementation

TimeOfDay.fromJson(core.Map _json)
    : this(
        hours: _json.containsKey('hours') ? _json['hours'] as core.int : null,
        minutes: _json.containsKey('minutes')
            ? _json['minutes'] as core.int
            : null,
        nanos: _json.containsKey('nanos') ? _json['nanos'] as core.int : null,
        seconds: _json.containsKey('seconds')
            ? _json['seconds'] as core.int
            : null,
      );