toJson method

Map<String, dynamic> toJson()

Serializes this instance to a JSON-compatible map.

Used internally, not intended for direct use by consumers. The map structure may change without notice.

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> json = <String, dynamic>{};
  json['arrowtype'] = arrowType.id;
  json['beginarrowdirection'] = beginArrowDirection.id;
  json['beginslot'] = beginSlot;
  json['endarrowdirection'] = endArrowDirection.id;
  json['endslot'] = endSlot;
  json['restrictiontype'] = restrictionType.id;
  json['shapeform'] = shapeForm.id;
  json['shapetype'] = shapeType.id;
  json['slotallocation'] = slotAllocation;
  return json;
}