TargetPlatform.fromJson constructor

TargetPlatform.fromJson(
  1. Map<String, dynamic> json
)

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(),
  );
}