SchematicPoint.fromJson constructor

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

Create a SchematicPoint from JSON data.

Implementation

factory SchematicPoint.fromJson(Map<String, dynamic> json) => SchematicPoint(
      (json['x'] as num?)?.toDouble() ?? 0.0,
      (json['y'] as num?)?.toDouble() ?? 0.0,
    );