GoogleTypeDateTime.fromJson constructor

GoogleTypeDateTime.fromJson(
  1. Map _json
)

Implementation

GoogleTypeDateTime.fromJson(core.Map _json)
    : this(
        day: _json.containsKey('day') ? _json['day'] as core.int : null,
        hours: _json.containsKey('hours') ? _json['hours'] as core.int : null,
        minutes: _json.containsKey('minutes')
            ? _json['minutes'] as core.int
            : null,
        month: _json.containsKey('month') ? _json['month'] as core.int : null,
        nanos: _json.containsKey('nanos') ? _json['nanos'] as core.int : null,
        seconds: _json.containsKey('seconds')
            ? _json['seconds'] as core.int
            : null,
        timeZone: _json.containsKey('timeZone')
            ? GoogleTypeTimeZone.fromJson(
                _json['timeZone'] as core.Map<core.String, core.dynamic>)
            : null,
        utcOffset: _json.containsKey('utcOffset')
            ? _json['utcOffset'] as core.String
            : null,
        year: _json.containsKey('year') ? _json['year'] as core.int : null,
      );