BinarySourceInfo.fromJson constructor

BinarySourceInfo.fromJson(
  1. Map json_
)

Implementation

BinarySourceInfo.fromJson(core.Map json_)
    : this(
        binaryVersion: json_.containsKey('binaryVersion')
            ? PackageVersion.fromJson(
                json_['binaryVersion'] as core.Map<core.String, core.dynamic>)
            : null,
        sourceVersion: json_.containsKey('sourceVersion')
            ? PackageVersion.fromJson(
                json_['sourceVersion'] as core.Map<core.String, core.dynamic>)
            : null,
      );