AbstractGeometry.fromJson constructor
Deserializes a JSON-compatible map to create an instance.
Used internally, not intended for direct use by consumers. The expected map structure may change without notice.
Implementation
factory AbstractGeometry.fromJson(final Map<String, dynamic> json) {
return AbstractGeometry(
anchorType: AnchorTypeExtension.fromId(json['anchortype']),
driveSide: DriveSideExtension.fromId(json['driveside']),
items: (json['items'] as List<dynamic>)
.map(
(final dynamic item) =>
AbstractGeometryItem.fromJson(item as Map<String, dynamic>),
)
.toList(),
leftIntermediateTurns: json['leftintermediateturns'],
rightIntermediateTurns: json['rightintermediateturns'],
);
}