TimeOfDay.fromJson constructor

TimeOfDay.fromJson(
  1. Map _json
)

Implementation

TimeOfDay.fromJson(core.Map _json) {
  if (_json.containsKey("hours")) {
    hours = _json["hours"];
  }
  if (_json.containsKey("minutes")) {
    minutes = _json["minutes"];
  }
  if (_json.containsKey("nanos")) {
    nanos = _json["nanos"];
  }
  if (_json.containsKey("seconds")) {
    seconds = _json["seconds"];
  }
}