Duration.fromJson constructor

Duration.fromJson(
  1. Map json_
)

Implementation

Duration.fromJson(core.Map json_)
  : this(
      count: json_['count'] as core.int?,
      unit: json_['unit'] as core.String?,
    );