toJsonWithStabilIdAndPageIdAndId method

Map<String, dynamic> toJsonWithStabilIdAndPageIdAndId()
inherited

Implementation

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