toJson method

Map<String, dynamic> toJson()

toJson method

Implementation

Map<String, dynamic> toJson() {
  final body = getAttributes.map((key, value) =>
      MapEntry(key, getIt<DynamicAttributes>().toJson(key, value)))
    ..remove('key');
  return {
    'type': type,
    'name': name,
    'description': description,
    'parent_id': parentID,
    'properties': body,
    'rect_properties': rectPropertiesToJson(),
    'updated_at': updatedAt.toIso8601String(),
    'child_order': childOrder,
    'component_id': componentID,
    'is_locked': isLocked,
  };
}