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,
      );