Skip to content

Commit

Permalink
Fixed parseDurationFromMilliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeiffer committed Jul 16, 2023
1 parent 64652e7 commit 0a41af8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,4 +1,4 @@
## [3.0.0] - July 16th, 2023
## [3.0.0+1] - July 16th, 2023

* Converted from nullable by default to non-nullable by defailt.
* Moved nullable functions to `maybe` functions such as `maybeParseInt`.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/json_class.dart
Expand Up @@ -543,7 +543,7 @@ abstract class JsonClass {

/// Parses a duration from milliseconds. The [value] may be an [int],
/// [double], or number encoded [String].
static Duration? parseDurationFromMillis(dynamic value) {
static Duration parseDurationFromMillis(dynamic value) {
final result = value is Duration ? value.inMilliseconds : parseInt(value);

return Duration(milliseconds: result);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,6 +1,6 @@
name: 'json_class'
description: 'An abstract class to assist with converting to and from JSON with various primitive parsers.'
version: '3.0.0'
version: '3.0.0+1'
homepage: 'https://github.com/peiffer-innovations/json_class'

environment:
Expand Down

0 comments on commit 0a41af8

Please sign in to comment.