TargetPlatform.fromJson constructor
Implementation
factory TargetPlatform.fromJson(Map<String, dynamic> json) {
return TargetPlatform(
arch: (json['Arch'] as String).toTargetPlatformArch(),
os: (json['Os'] as String).toTargetPlatformOs(),
accelerator:
(json['Accelerator'] as String?)?.toTargetPlatformAccelerator(),
);
}