SolidPrimitive.fromJson constructor

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

Implementation

factory SolidPrimitive.fromJson(Map<String, Object?> json) => SolidPrimitive(
      type: Field.intAt(json, 'type'),
      dimensions: Field.asFloat64List(json['dimensions']),
      polygon: Field.asMessage(json['polygon'], Polygon.fromJson),
    );