Duration.fromJson constructor

Duration.fromJson(
  1. 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,
      );