VersionManifest.fromJson constructor

VersionManifest.fromJson(
  1. Map<String, dynamic> data
)

Implementation

VersionManifest.fromJson(Map<String, dynamic> data)
    : latestRelease = data['latest']['release'],
      latestSnapshot = data['latest']['snapshot'],
      versions = (data['versions'] as List<dynamic>)
          .map((d) => Version.fromJson(d))
          .toList();