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