FlutterVersion.parse constructor

FlutterVersion.parse(
  1. Map<String, dynamic> json
)

Implementation

factory FlutterVersion.parse(Map<String, dynamic> json) {
  return FlutterVersion._(
    version: json['frameworkVersion'],
    channel: json['channel'],
    repositoryUrl: json['repositoryUrl'],
    frameworkRevision: json['frameworkRevisionShort'],
    frameworkCommitDate: json['frameworkCommitDate'],
    engineRevision: json['engineRevisionShort'],
    dartSdkVersion: _parseDartVersion(json['dartSdkVersion']),
  );
}