AxisReport.fromJson constructor

AxisReport.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory AxisReport.fromJson(Map<String, Object?> json) => AxisReport(
  entryId: json['entry'] as String?,
  shellId: json['shell'] as String?,
  axes: [
    for (var axis in json['axes'] as List? ?? const [])
      KnobDescriptor.fromJson((axis as Map).cast<String, Object?>()),
  ],
);