DurationDTO.fromJson constructor

DurationDTO.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory DurationDTO.fromJson(Map<String, Object?> json) {
  return DurationDTO(
    friendly: json[r'friendly'] as String?,
    millis: (json[r'millis'] as num?)?.toInt(),
  );
}