$SemanticVersion.fromJson constructor

$SemanticVersion.fromJson(
  1. Map json_
)

Implementation

$SemanticVersion.fromJson(core.Map json_)
    : this(
        majorNumber: json_.containsKey('majorNumber')
            ? json_['majorNumber'] as core.int
            : null,
        minorNumber: json_.containsKey('minorNumber')
            ? json_['minorNumber'] as core.int
            : null,
        patch: json_.containsKey('patch') ? json_['patch'] as core.int : null,
      );