Duration.fromJson constructor
Duration.fromJson(
- Map _json
Implementation
Duration.fromJson(core.Map _json)
: this(
nanos: _json.containsKey('nanos') ? _json['nanos'] as core.int : null,
seconds: _json.containsKey('seconds')
? _json['seconds'] as core.String
: null,
);