toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final arch = this.arch;
  final os = this.os;
  final accelerator = this.accelerator;
  return {
    'Arch': arch.toValue(),
    'Os': os.toValue(),
    if (accelerator != null) 'Accelerator': accelerator.toValue(),
  };
}