$Version.fromJson constructor

$Version.fromJson(
  1. Map json_
)

Implementation

$Version.fromJson(core.Map json_)
    : this(
        epoch: json_.containsKey('epoch') ? json_['epoch'] as core.int : null,
        fullName: json_.containsKey('fullName')
            ? json_['fullName'] as core.String
            : null,
        inclusive: json_.containsKey('inclusive')
            ? json_['inclusive'] as core.bool
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        revision: json_.containsKey('revision')
            ? json_['revision'] as core.String
            : null,
      );