From 8d6d60d3bfc3dfdb26def0f101af5e931fb44e1d Mon Sep 17 00:00:00 2001 From: Felix Liu Date: Wed, 9 Aug 2023 10:43:05 -0400 Subject: [PATCH] Added component properties --- lib/src/models/boolean_operation.dart | 2 +- lib/src/models/boolean_operation.g.dart | 29 +++++++------ lib/src/models/canvas.dart | 2 +- lib/src/models/canvas.g.dart | 29 +++++++------ lib/src/models/component.dart | 8 +++- lib/src/models/component.g.dart | 27 ++++++++++++ lib/src/models/component_node.dart | 2 +- lib/src/models/component_node.g.dart | 29 +++++++------ lib/src/models/component_set.dart | 6 +++ lib/src/models/component_set.g.dart | 27 ++++++++++++ lib/src/models/document.dart | 2 +- lib/src/models/document.g.dart | 29 +++++++------ lib/src/models/ellipse.dart | 2 +- lib/src/models/ellipse.g.dart | 29 +++++++------ lib/src/models/frame.dart | 2 +- lib/src/models/frame.g.dart | 29 +++++++------ lib/src/models/group.dart | 2 +- lib/src/models/group.g.dart | 29 +++++++------ lib/src/models/instance.dart | 8 +++- lib/src/models/instance.g.dart | 56 ++++++++++++++++++------- lib/src/models/line.dart | 2 +- lib/src/models/line.g.dart | 29 +++++++------ lib/src/models/node.dart | 6 +-- lib/src/models/node.g.dart | 29 +++++++------ lib/src/models/rectangle.dart | 2 +- lib/src/models/rectangle.g.dart | 29 +++++++------ lib/src/models/regular_polygon.dart | 2 +- lib/src/models/regular_polygon.g.dart | 29 +++++++------ lib/src/models/slice.dart | 2 +- lib/src/models/slice.g.dart | 29 +++++++------ lib/src/models/star.dart | 2 +- lib/src/models/star.g.dart | 29 +++++++------ lib/src/models/text.dart | 2 +- lib/src/models/text.g.dart | 29 +++++++------ lib/src/models/vector.dart | 2 +- lib/src/models/vector.g.dart | 29 +++++++------ 36 files changed, 342 insertions(+), 259 deletions(-) diff --git a/lib/src/models/boolean_operation.dart b/lib/src/models/boolean_operation.dart index cfa4169..ce9f709 100644 --- a/lib/src/models/boolean_operation.dart +++ b/lib/src/models/boolean_operation.dart @@ -46,7 +46,7 @@ class BooleanOperation extends Vector { required super.strokeJoin, required super.strokeDashes, required super.strokeMiterAngle, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.name, super.rotation, super.pluginData, diff --git a/lib/src/models/boolean_operation.g.dart b/lib/src/models/boolean_operation.g.dart index e792a3c..2ebf2ef 100644 --- a/lib/src/models/boolean_operation.g.dart +++ b/lib/src/models/boolean_operation.g.dart @@ -37,8 +37,8 @@ abstract class _$BooleanOperationCWProxy { BooleanOperation strokeMiterAngle(double strokeMiterAngle); - BooleanOperation componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + BooleanOperation componentPropertyReferences( + Map? componentPropertyReferences); BooleanOperation name(String? name); @@ -110,7 +110,7 @@ abstract class _$BooleanOperationCWProxy { StrokeJoin? strokeJoin, List? strokeDashes, double? strokeMiterAngle, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, String? name, double? rotation, dynamic pluginData, @@ -196,9 +196,9 @@ class _$BooleanOperationCWProxyImpl implements _$BooleanOperationCWProxy { this(strokeMiterAngle: strokeMiterAngle); @override - BooleanOperation componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + BooleanOperation componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override BooleanOperation name(String? name) => this(name: name); @@ -313,7 +313,7 @@ class _$BooleanOperationCWProxyImpl implements _$BooleanOperationCWProxy { Object? strokeJoin = const $CopyWithPlaceholder(), Object? strokeDashes = const $CopyWithPlaceholder(), Object? strokeMiterAngle = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? pluginData = const $CopyWithPlaceholder(), @@ -406,11 +406,11 @@ class _$BooleanOperationCWProxyImpl implements _$BooleanOperationCWProxy { ? _value.strokeMiterAngle // ignore: cast_nullable_to_non_nullable : strokeMiterAngle as double, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, name: name == const $CopyWithPlaceholder() ? _value.name // ignore: cast_nullable_to_non_nullable @@ -555,9 +555,8 @@ BooleanOperation _$BooleanOperationFromJson(Map json) => .toList() ?? [], strokeMiterAngle: (json['strokeMiterAngle'] as num?)?.toDouble() ?? 28.96, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), name: json['name'] as String?, @@ -626,7 +625,7 @@ Map _$BooleanOperationToJson(BooleanOperation instance) => 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'locked': instance.locked, 'exportSettings': instance.exportSettings, 'blendMode': _$BlendModeEnumMap[instance.blendMode], diff --git a/lib/src/models/canvas.dart b/lib/src/models/canvas.dart index ad5895c..ce3e2f5 100644 --- a/lib/src/models/canvas.dart +++ b/lib/src/models/canvas.dart @@ -33,7 +33,7 @@ class Canvas extends Node { Canvas({ required super.id, required super.visible, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.name, super.rotation, super.pluginData, diff --git a/lib/src/models/canvas.g.dart b/lib/src/models/canvas.g.dart index 14ca22c..1434fd6 100644 --- a/lib/src/models/canvas.g.dart +++ b/lib/src/models/canvas.g.dart @@ -11,8 +11,8 @@ abstract class _$CanvasCWProxy { Canvas visible(bool visible); - Canvas componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Canvas componentPropertyReferences( + Map? componentPropertyReferences); Canvas name(String? name); @@ -43,7 +43,7 @@ abstract class _$CanvasCWProxy { Canvas call({ String? id, bool? visible, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, String? name, double? rotation, dynamic pluginData, @@ -70,9 +70,9 @@ class _$CanvasCWProxyImpl implements _$CanvasCWProxy { Canvas visible(bool visible) => this(visible: visible); @override - Canvas componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Canvas componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Canvas name(String? name) => this(name: name); @@ -120,7 +120,7 @@ class _$CanvasCWProxyImpl implements _$CanvasCWProxy { Canvas call({ Object? id = const $CopyWithPlaceholder(), Object? visible = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? pluginData = const $CopyWithPlaceholder(), @@ -141,11 +141,11 @@ class _$CanvasCWProxyImpl implements _$CanvasCWProxy { ? _value.visible // ignore: cast_nullable_to_non_nullable : visible as bool, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, name: name == const $CopyWithPlaceholder() ? _value.name // ignore: cast_nullable_to_non_nullable @@ -208,9 +208,8 @@ extension $CanvasCopyWith on Canvas { Canvas _$CanvasFromJson(Map json) => Canvas( id: json['id'] as String, visible: json['visible'] as bool? ?? true, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), name: json['name'] as String?, @@ -245,7 +244,7 @@ Map _$CanvasToJson(Canvas instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'children': instance.children?.map(const NodeJsonConverter().toJson).toList(), 'backgroundColor': instance.backgroundColor, diff --git a/lib/src/models/component.dart b/lib/src/models/component.dart index 498b2dd..c0a71b1 100644 --- a/lib/src/models/component.dart +++ b/lib/src/models/component.dart @@ -56,6 +56,10 @@ class Component extends Equatable { /// if any. final String? componentSetId; + // Mapping of property name to its definitions + @JsonKey(defaultValue: {}) + final Map componentPropertyDefinitions; + Component({ this.key, this.fileKey, @@ -69,6 +73,7 @@ class Component extends Equatable { this.containingFrame, this.containingPage, this.componentSetId, + required this.componentPropertyDefinitions, }); @override @@ -84,7 +89,8 @@ class Component extends Equatable { user, containingFrame, containingPage, - componentSetId + componentSetId, + componentPropertyDefinitions, ]; factory Component.fromJson(Map json) => diff --git a/lib/src/models/component.g.dart b/lib/src/models/component.g.dart index a05de8a..ba95b5f 100644 --- a/lib/src/models/component.g.dart +++ b/lib/src/models/component.g.dart @@ -31,6 +31,9 @@ abstract class _$ComponentCWProxy { Component componentSetId(String? componentSetId); + Component componentPropertyDefinitions( + Map componentPropertyDefinitions); + /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `Component(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. /// /// Usage @@ -50,6 +53,7 @@ abstract class _$ComponentCWProxy { FrameInfo? containingFrame, dynamic containingPage, String? componentSetId, + Map? componentPropertyDefinitions, }); } @@ -99,6 +103,12 @@ class _$ComponentCWProxyImpl implements _$ComponentCWProxy { Component componentSetId(String? componentSetId) => this(componentSetId: componentSetId); + @override + Component componentPropertyDefinitions( + Map + componentPropertyDefinitions) => + this(componentPropertyDefinitions: componentPropertyDefinitions); + @override /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `Component(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. @@ -120,6 +130,7 @@ class _$ComponentCWProxyImpl implements _$ComponentCWProxy { Object? containingFrame = const $CopyWithPlaceholder(), Object? containingPage = const $CopyWithPlaceholder(), Object? componentSetId = const $CopyWithPlaceholder(), + Object? componentPropertyDefinitions = const $CopyWithPlaceholder(), }) { return Component( key: key == const $CopyWithPlaceholder() @@ -171,6 +182,13 @@ class _$ComponentCWProxyImpl implements _$ComponentCWProxy { ? _value.componentSetId // ignore: cast_nullable_to_non_nullable : componentSetId as String?, + componentPropertyDefinitions: + componentPropertyDefinitions == const $CopyWithPlaceholder() || + componentPropertyDefinitions == null + ? _value.componentPropertyDefinitions + // ignore: cast_nullable_to_non_nullable + : componentPropertyDefinitions + as Map, ); } } @@ -207,6 +225,14 @@ Component _$ComponentFromJson(Map json) => Component( json['containing_frame'] as Map), containingPage: json['containing_page'], componentSetId: json['componentSetId'] as String?, + componentPropertyDefinitions: + (json['componentPropertyDefinitions'] as Map?)?.map( + (k, e) => MapEntry( + k, + ComponentPropertyDefinition.fromJson( + e as Map)), + ) ?? + {}, ); Map _$ComponentToJson(Component instance) => { @@ -222,4 +248,5 @@ Map _$ComponentToJson(Component instance) => { 'containing_frame': instance.containingFrame, 'containing_page': instance.containingPage, 'componentSetId': instance.componentSetId, + 'componentPropertyDefinitions': instance.componentPropertyDefinitions, }; diff --git a/lib/src/models/component_node.dart b/lib/src/models/component_node.dart index b6fc2f5..3621dcb 100644 --- a/lib/src/models/component_node.dart +++ b/lib/src/models/component_node.dart @@ -41,7 +41,7 @@ class ComponentNode extends Frame { required super.size, required this.componentPropertyDefinitions, super.styles, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.absoluteBoundingBox, super.absoluteRenderBounds, super.rotation, diff --git a/lib/src/models/component_node.g.dart b/lib/src/models/component_node.g.dart index 72e6539..cb1b2b4 100644 --- a/lib/src/models/component_node.g.dart +++ b/lib/src/models/component_node.g.dart @@ -72,8 +72,8 @@ abstract class _$ComponentNodeCWProxy { ComponentNode styles(Map? styles); - ComponentNode componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + ComponentNode componentPropertyReferences( + Map? componentPropertyReferences); ComponentNode absoluteBoundingBox(SizeRectangle? absoluteBoundingBox); @@ -156,7 +156,7 @@ abstract class _$ComponentNodeCWProxy { Vector2D? size, Map? componentPropertyDefinitions, Map? styles, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, SizeRectangle? absoluteBoundingBox, SizeRectangle? absoluteRenderBounds, double? rotation, @@ -304,9 +304,9 @@ class _$ComponentNodeCWProxyImpl implements _$ComponentNodeCWProxy { this(styles: styles); @override - ComponentNode componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + ComponentNode componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override ComponentNode absoluteBoundingBox(SizeRectangle? absoluteBoundingBox) => @@ -430,7 +430,7 @@ class _$ComponentNodeCWProxyImpl implements _$ComponentNodeCWProxy { Object? size = const $CopyWithPlaceholder(), Object? componentPropertyDefinitions = const $CopyWithPlaceholder(), Object? styles = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? absoluteBoundingBox = const $CopyWithPlaceholder(), Object? absoluteRenderBounds = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), @@ -601,11 +601,11 @@ class _$ComponentNodeCWProxyImpl implements _$ComponentNodeCWProxy { ? _value.styles // ignore: cast_nullable_to_non_nullable : styles as Map?, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, absoluteBoundingBox: absoluteBoundingBox == const $CopyWithPlaceholder() ? _value.absoluteBoundingBox // ignore: cast_nullable_to_non_nullable @@ -786,9 +786,8 @@ ComponentNode _$ComponentNodeFromJson(Map json) => styles: (json['styles'] as Map?)?.map( (k, e) => MapEntry($enumDecode(_$StyleTypeKeyEnumMap, k), e as String), ), - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), absoluteBoundingBox: json['absoluteBoundingBox'] == null @@ -845,7 +844,7 @@ Map _$ComponentNodeToJson(ComponentNode instance) => 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'children': instance.children?.map(const NodeJsonConverter().toJson).toList(), 'locked': instance.locked, diff --git a/lib/src/models/component_set.dart b/lib/src/models/component_set.dart index db24978..3b1376b 100644 --- a/lib/src/models/component_set.dart +++ b/lib/src/models/component_set.dart @@ -51,6 +51,10 @@ class ComponentSet extends Equatable { @JsonKey(name: 'containing_page') final dynamic containingPage; + // Mapping of property name to its definitions + @JsonKey(defaultValue: {}) + final Map componentPropertyDefinitions; + ComponentSet({ this.key, this.fileKey, @@ -63,6 +67,7 @@ class ComponentSet extends Equatable { this.user, this.containingFrame, this.containingPage, + required this.componentPropertyDefinitions, }); @override @@ -78,6 +83,7 @@ class ComponentSet extends Equatable { user, containingFrame, containingPage, + componentPropertyDefinitions, ]; factory ComponentSet.fromJson(Map json) => diff --git a/lib/src/models/component_set.g.dart b/lib/src/models/component_set.g.dart index 4018775..58ce503 100644 --- a/lib/src/models/component_set.g.dart +++ b/lib/src/models/component_set.g.dart @@ -29,6 +29,9 @@ abstract class _$ComponentSetCWProxy { ComponentSet containingPage(dynamic containingPage); + ComponentSet componentPropertyDefinitions( + Map componentPropertyDefinitions); + /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ComponentSet(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. /// /// Usage @@ -47,6 +50,7 @@ abstract class _$ComponentSetCWProxy { User? user, FrameInfo? containingFrame, dynamic containingPage, + Map? componentPropertyDefinitions, }); } @@ -93,6 +97,12 @@ class _$ComponentSetCWProxyImpl implements _$ComponentSetCWProxy { ComponentSet containingPage(dynamic containingPage) => this(containingPage: containingPage); + @override + ComponentSet componentPropertyDefinitions( + Map + componentPropertyDefinitions) => + this(componentPropertyDefinitions: componentPropertyDefinitions); + @override /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `ComponentSet(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. @@ -113,6 +123,7 @@ class _$ComponentSetCWProxyImpl implements _$ComponentSetCWProxy { Object? user = const $CopyWithPlaceholder(), Object? containingFrame = const $CopyWithPlaceholder(), Object? containingPage = const $CopyWithPlaceholder(), + Object? componentPropertyDefinitions = const $CopyWithPlaceholder(), }) { return ComponentSet( key: key == const $CopyWithPlaceholder() @@ -160,6 +171,13 @@ class _$ComponentSetCWProxyImpl implements _$ComponentSetCWProxy { ? _value.containingPage // ignore: cast_nullable_to_non_nullable : containingPage as dynamic, + componentPropertyDefinitions: + componentPropertyDefinitions == const $CopyWithPlaceholder() || + componentPropertyDefinitions == null + ? _value.componentPropertyDefinitions + // ignore: cast_nullable_to_non_nullable + : componentPropertyDefinitions + as Map, ); } } @@ -195,6 +213,14 @@ ComponentSet _$ComponentSetFromJson(Map json) => ComponentSet( : FrameInfo.fromJson( json['containing_frame'] as Map), containingPage: json['containing_page'], + componentPropertyDefinitions: + (json['componentPropertyDefinitions'] as Map?)?.map( + (k, e) => MapEntry( + k, + ComponentPropertyDefinition.fromJson( + e as Map)), + ) ?? + {}, ); Map _$ComponentSetToJson(ComponentSet instance) => @@ -210,4 +236,5 @@ Map _$ComponentSetToJson(ComponentSet instance) => 'user': instance.user, 'containing_frame': instance.containingFrame, 'containing_page': instance.containingPage, + 'componentPropertyDefinitions': instance.componentPropertyDefinitions, }; diff --git a/lib/src/models/document.dart b/lib/src/models/document.dart index 0ef38d5..d4a1834 100644 --- a/lib/src/models/document.dart +++ b/lib/src/models/document.dart @@ -17,7 +17,7 @@ class Document extends Node { Document({ required super.id, required super.visible, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.rotation, super.type, super.name, diff --git a/lib/src/models/document.g.dart b/lib/src/models/document.g.dart index 61bba82..be9ce77 100644 --- a/lib/src/models/document.g.dart +++ b/lib/src/models/document.g.dart @@ -11,8 +11,8 @@ abstract class _$DocumentCWProxy { Document visible(bool visible); - Document componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Document componentPropertyReferences( + Map? componentPropertyReferences); Document rotation(double? rotation); @@ -35,7 +35,7 @@ abstract class _$DocumentCWProxy { Document call({ String? id, bool? visible, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, double? rotation, String? type, String? name, @@ -58,9 +58,9 @@ class _$DocumentCWProxyImpl implements _$DocumentCWProxy { Document visible(bool visible) => this(visible: visible); @override - Document componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Document componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Document rotation(double? rotation) => this(rotation: rotation); @@ -92,7 +92,7 @@ class _$DocumentCWProxyImpl implements _$DocumentCWProxy { Document call({ Object? id = const $CopyWithPlaceholder(), Object? visible = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? type = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), @@ -109,11 +109,11 @@ class _$DocumentCWProxyImpl implements _$DocumentCWProxy { ? _value.visible // ignore: cast_nullable_to_non_nullable : visible as bool, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, rotation: rotation == const $CopyWithPlaceholder() ? _value.rotation // ignore: cast_nullable_to_non_nullable @@ -157,9 +157,8 @@ extension $DocumentCopyWith on Document { Document _$DocumentFromJson(Map json) => Document( id: json['id'] as String, visible: json['visible'] as bool? ?? true, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), rotation: (json['rotation'] as num?)?.toDouble(), @@ -180,7 +179,7 @@ Map _$DocumentToJson(Document instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'children': instance.children?.map(const NodeJsonConverter().toJson).toList(), }; diff --git a/lib/src/models/ellipse.dart b/lib/src/models/ellipse.dart index ae38ba6..cf580bb 100644 --- a/lib/src/models/ellipse.dart +++ b/lib/src/models/ellipse.dart @@ -24,7 +24,7 @@ class Ellipse extends Vector { required super.strokeJoin, required super.strokeDashes, required super.strokeMiterAngle, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.name, super.rotation, super.pluginData, diff --git a/lib/src/models/ellipse.g.dart b/lib/src/models/ellipse.g.dart index 85859b7..c401451 100644 --- a/lib/src/models/ellipse.g.dart +++ b/lib/src/models/ellipse.g.dart @@ -37,8 +37,8 @@ abstract class _$EllipseCWProxy { Ellipse strokeMiterAngle(double strokeMiterAngle); - Ellipse componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Ellipse componentPropertyReferences( + Map? componentPropertyReferences); Ellipse name(String? name); @@ -106,7 +106,7 @@ abstract class _$EllipseCWProxy { StrokeJoin? strokeJoin, List? strokeDashes, double? strokeMiterAngle, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, String? name, double? rotation, dynamic pluginData, @@ -189,9 +189,9 @@ class _$EllipseCWProxyImpl implements _$EllipseCWProxy { this(strokeMiterAngle: strokeMiterAngle); @override - Ellipse componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Ellipse componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Ellipse name(String? name) => this(name: name); @@ -297,7 +297,7 @@ class _$EllipseCWProxyImpl implements _$EllipseCWProxy { Object? strokeJoin = const $CopyWithPlaceholder(), Object? strokeDashes = const $CopyWithPlaceholder(), Object? strokeMiterAngle = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? pluginData = const $CopyWithPlaceholder(), @@ -389,11 +389,11 @@ class _$EllipseCWProxyImpl implements _$EllipseCWProxy { ? _value.strokeMiterAngle // ignore: cast_nullable_to_non_nullable : strokeMiterAngle as double, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, name: name == const $CopyWithPlaceholder() ? _value.name // ignore: cast_nullable_to_non_nullable @@ -533,9 +533,8 @@ Ellipse _$EllipseFromJson(Map json) => Ellipse( .toList() ?? [], strokeMiterAngle: (json['strokeMiterAngle'] as num?)?.toDouble() ?? 28.96, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), name: json['name'] as String?, @@ -600,7 +599,7 @@ Map _$EllipseToJson(Ellipse instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'locked': instance.locked, 'exportSettings': instance.exportSettings, 'blendMode': _$BlendModeEnumMap[instance.blendMode], diff --git a/lib/src/models/frame.dart b/lib/src/models/frame.dart index 17d7d23..c13029d 100644 --- a/lib/src/models/frame.dart +++ b/lib/src/models/frame.dart @@ -213,7 +213,7 @@ class Frame extends Node { Frame({ required super.id, required super.visible, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.name, super.rotation, super.pluginData, diff --git a/lib/src/models/frame.g.dart b/lib/src/models/frame.g.dart index bf9cf87..ea8eaaf 100644 --- a/lib/src/models/frame.g.dart +++ b/lib/src/models/frame.g.dart @@ -11,8 +11,8 @@ abstract class _$FrameCWProxy { Frame visible(bool visible); - Frame componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Frame componentPropertyReferences( + Map? componentPropertyReferences); Frame name(String? name); @@ -121,7 +121,7 @@ abstract class _$FrameCWProxy { Frame call({ String? id, bool? visible, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, String? name, double? rotation, dynamic pluginData, @@ -187,9 +187,9 @@ class _$FrameCWProxyImpl implements _$FrameCWProxy { Frame visible(bool visible) => this(visible: visible); @override - Frame componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Frame componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Frame name(String? name) => this(name: name); @@ -371,7 +371,7 @@ class _$FrameCWProxyImpl implements _$FrameCWProxy { Frame call({ Object? id = const $CopyWithPlaceholder(), Object? visible = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? pluginData = const $CopyWithPlaceholder(), @@ -431,11 +431,11 @@ class _$FrameCWProxyImpl implements _$FrameCWProxy { ? _value.visible // ignore: cast_nullable_to_non_nullable : visible as bool, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, name: name == const $CopyWithPlaceholder() ? _value.name // ignore: cast_nullable_to_non_nullable @@ -677,9 +677,8 @@ extension $FrameCopyWith on Frame { Frame _$FrameFromJson(Map json) => Frame( id: json['id'] as String, visible: json['visible'] as bool? ?? true, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), name: json['name'] as String?, @@ -796,7 +795,7 @@ Map _$FrameToJson(Frame instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'children': instance.children?.map(const NodeJsonConverter().toJson).toList(), 'locked': instance.locked, diff --git a/lib/src/models/group.dart b/lib/src/models/group.dart index 26c6bf7..e558d12 100644 --- a/lib/src/models/group.dart +++ b/lib/src/models/group.dart @@ -40,7 +40,7 @@ class Group extends Frame { required super.preserveRatio, required super.layoutGrow, super.styles, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.absoluteBoundingBox, super.absoluteRenderBounds, super.rotation, diff --git a/lib/src/models/group.g.dart b/lib/src/models/group.g.dart index 60bdf1e..4c3f2e7 100644 --- a/lib/src/models/group.g.dart +++ b/lib/src/models/group.g.dart @@ -69,8 +69,8 @@ abstract class _$GroupCWProxy { Group styles(Map? styles); - Group componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Group componentPropertyReferences( + Map? componentPropertyReferences); Group absoluteBoundingBox(SizeRectangle? absoluteBoundingBox); @@ -150,7 +150,7 @@ abstract class _$GroupCWProxy { bool? preserveRatio, double? layoutGrow, Map? styles, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, SizeRectangle? absoluteBoundingBox, SizeRectangle? absoluteRenderBounds, double? rotation, @@ -287,9 +287,9 @@ class _$GroupCWProxyImpl implements _$GroupCWProxy { Group styles(Map? styles) => this(styles: styles); @override - Group componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Group componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Group absoluteBoundingBox(SizeRectangle? absoluteBoundingBox) => @@ -400,7 +400,7 @@ class _$GroupCWProxyImpl implements _$GroupCWProxy { Object? preserveRatio = const $CopyWithPlaceholder(), Object? layoutGrow = const $CopyWithPlaceholder(), Object? styles = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? absoluteBoundingBox = const $CopyWithPlaceholder(), Object? absoluteRenderBounds = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), @@ -572,11 +572,11 @@ class _$GroupCWProxyImpl implements _$GroupCWProxy { ? _value.styles // ignore: cast_nullable_to_non_nullable : styles as Map?, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, absoluteBoundingBox: absoluteBoundingBox == const $CopyWithPlaceholder() ? _value.absoluteBoundingBox // ignore: cast_nullable_to_non_nullable @@ -740,9 +740,8 @@ Group _$GroupFromJson(Map json) => Group( styles: (json['styles'] as Map?)?.map( (k, e) => MapEntry($enumDecode(_$StyleTypeKeyEnumMap, k), e as String), ), - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), absoluteBoundingBox: json['absoluteBoundingBox'] == null @@ -796,7 +795,7 @@ Map _$GroupToJson(Group instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'children': instance.children?.map(const NodeJsonConverter().toJson).toList(), 'locked': instance.locked, diff --git a/lib/src/models/instance.dart b/lib/src/models/instance.dart index 3cc724a..77e008e 100644 --- a/lib/src/models/instance.dart +++ b/lib/src/models/instance.dart @@ -40,7 +40,7 @@ class Instance extends Frame { required super.preserveRatio, required super.layoutGrow, super.styles, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.absoluteBoundingBox, super.absoluteRenderBounds, super.rotation, @@ -65,6 +65,7 @@ class Instance extends Frame { required this.exposedInstances, required this.componentProperties, this.componentId, + required this.componentPropertyDefinitions, }); /// ID of component that this instance came from, refers to components @@ -84,10 +85,15 @@ class Instance extends Frame { @JsonKey(defaultValue: {}) final Map componentProperties; + // Mapping of property name to its definitions + @JsonKey(defaultValue: {}) + final Map componentPropertyDefinitions; + @override List get props => [ ...super.props, componentId, + componentPropertyDefinitions, ]; factory Instance.fromJson(Map json) => diff --git a/lib/src/models/instance.g.dart b/lib/src/models/instance.g.dart index 998e36c..68fd6ba 100644 --- a/lib/src/models/instance.g.dart +++ b/lib/src/models/instance.g.dart @@ -69,8 +69,8 @@ abstract class _$InstanceCWProxy { Instance styles(Map? styles); - Instance componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Instance componentPropertyReferences( + Map? componentPropertyReferences); Instance absoluteBoundingBox(SizeRectangle? absoluteBoundingBox); @@ -121,6 +121,9 @@ abstract class _$InstanceCWProxy { Instance componentId(String? componentId); + Instance componentPropertyDefinitions( + Map componentPropertyDefinitions); + /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `Instance(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. /// /// Usage @@ -159,7 +162,7 @@ abstract class _$InstanceCWProxy { bool? preserveRatio, double? layoutGrow, Map? styles, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, SizeRectangle? absoluteBoundingBox, SizeRectangle? absoluteRenderBounds, double? rotation, @@ -184,6 +187,7 @@ abstract class _$InstanceCWProxy { List? exposedInstances, Map? componentProperties, String? componentId, + Map? componentPropertyDefinitions, }); } @@ -303,9 +307,9 @@ class _$InstanceCWProxyImpl implements _$InstanceCWProxy { Instance styles(Map? styles) => this(styles: styles); @override - Instance componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Instance componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Instance absoluteBoundingBox(SizeRectangle? absoluteBoundingBox) => @@ -396,6 +400,12 @@ class _$InstanceCWProxyImpl implements _$InstanceCWProxy { @override Instance componentId(String? componentId) => this(componentId: componentId); + @override + Instance componentPropertyDefinitions( + Map + componentPropertyDefinitions) => + this(componentPropertyDefinitions: componentPropertyDefinitions); + @override /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `Instance(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. @@ -436,7 +446,7 @@ class _$InstanceCWProxyImpl implements _$InstanceCWProxy { Object? preserveRatio = const $CopyWithPlaceholder(), Object? layoutGrow = const $CopyWithPlaceholder(), Object? styles = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? absoluteBoundingBox = const $CopyWithPlaceholder(), Object? absoluteRenderBounds = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), @@ -461,6 +471,7 @@ class _$InstanceCWProxyImpl implements _$InstanceCWProxy { Object? exposedInstances = const $CopyWithPlaceholder(), Object? componentProperties = const $CopyWithPlaceholder(), Object? componentId = const $CopyWithPlaceholder(), + Object? componentPropertyDefinitions = const $CopyWithPlaceholder(), }) { return Instance( id: id == const $CopyWithPlaceholder() || id == null @@ -612,11 +623,11 @@ class _$InstanceCWProxyImpl implements _$InstanceCWProxy { ? _value.styles // ignore: cast_nullable_to_non_nullable : styles as Map?, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, absoluteBoundingBox: absoluteBoundingBox == const $CopyWithPlaceholder() ? _value.absoluteBoundingBox // ignore: cast_nullable_to_non_nullable @@ -720,6 +731,13 @@ class _$InstanceCWProxyImpl implements _$InstanceCWProxy { ? _value.componentId // ignore: cast_nullable_to_non_nullable : componentId as String?, + componentPropertyDefinitions: + componentPropertyDefinitions == const $CopyWithPlaceholder() || + componentPropertyDefinitions == null + ? _value.componentPropertyDefinitions + // ignore: cast_nullable_to_non_nullable + : componentPropertyDefinitions + as Map, ); } } @@ -800,9 +818,8 @@ Instance _$InstanceFromJson(Map json) => Instance( styles: (json['styles'] as Map?)?.map( (k, e) => MapEntry($enumDecode(_$StyleTypeKeyEnumMap, k), e as String), ), - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), absoluteBoundingBox: json['absoluteBoundingBox'] == null @@ -858,6 +875,14 @@ Instance _$InstanceFromJson(Map json) => Instance( ) ?? {}, componentId: json['componentId'] as String?, + componentPropertyDefinitions: + (json['componentPropertyDefinitions'] as Map?)?.map( + (k, e) => MapEntry( + k, + ComponentPropertyDefinition.fromJson( + e as Map)), + ) ?? + {}, ); Map _$InstanceToJson(Instance instance) => { @@ -868,7 +893,7 @@ Map _$InstanceToJson(Instance instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'children': instance.children?.map(const NodeJsonConverter().toJson).toList(), 'locked': instance.locked, @@ -925,6 +950,7 @@ Map _$InstanceToJson(Instance instance) => { 'isExposedInstance': instance.isExposedInstance, 'exposedInstances': instance.exposedInstances, 'componentProperties': instance.componentProperties, + 'componentPropertyDefinitions': instance.componentPropertyDefinitions, }; const _$LayoutPositioningEnumMap = { diff --git a/lib/src/models/line.dart b/lib/src/models/line.dart index 7e70671..08b3c45 100644 --- a/lib/src/models/line.dart +++ b/lib/src/models/line.dart @@ -23,7 +23,7 @@ class Line extends Vector { required super.strokeJoin, required super.strokeDashes, required super.strokeMiterAngle, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.name, super.rotation, super.pluginData, diff --git a/lib/src/models/line.g.dart b/lib/src/models/line.g.dart index 0059813..eb1d87c 100644 --- a/lib/src/models/line.g.dart +++ b/lib/src/models/line.g.dart @@ -37,8 +37,8 @@ abstract class _$LineCWProxy { Line strokeMiterAngle(double strokeMiterAngle); - Line componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Line componentPropertyReferences( + Map? componentPropertyReferences); Line name(String? name); @@ -104,7 +104,7 @@ abstract class _$LineCWProxy { StrokeJoin? strokeJoin, List? strokeDashes, double? strokeMiterAngle, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, String? name, double? rotation, dynamic pluginData, @@ -185,9 +185,9 @@ class _$LineCWProxyImpl implements _$LineCWProxy { this(strokeMiterAngle: strokeMiterAngle); @override - Line componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Line componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Line name(String? name) => this(name: name); @@ -287,7 +287,7 @@ class _$LineCWProxyImpl implements _$LineCWProxy { Object? strokeJoin = const $CopyWithPlaceholder(), Object? strokeDashes = const $CopyWithPlaceholder(), Object? strokeMiterAngle = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? pluginData = const $CopyWithPlaceholder(), @@ -378,11 +378,11 @@ class _$LineCWProxyImpl implements _$LineCWProxy { ? _value.strokeMiterAngle // ignore: cast_nullable_to_non_nullable : strokeMiterAngle as double, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, name: name == const $CopyWithPlaceholder() ? _value.name // ignore: cast_nullable_to_non_nullable @@ -518,9 +518,8 @@ Line _$LineFromJson(Map json) => Line( .toList() ?? [], strokeMiterAngle: (json['strokeMiterAngle'] as num?)?.toDouble() ?? 28.96, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), name: json['name'] as String?, @@ -584,7 +583,7 @@ Map _$LineToJson(Line instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'locked': instance.locked, 'exportSettings': instance.exportSettings, 'blendMode': _$BlendModeEnumMap[instance.blendMode], diff --git a/lib/src/models/node.dart b/lib/src/models/node.dart index 0f0fd93..4167423 100644 --- a/lib/src/models/node.dart +++ b/lib/src/models/node.dart @@ -38,7 +38,7 @@ class Node extends Equatable { /// properties attached to this node. The component property name can be used /// to look up more information on the corresponding component's or component /// set's componentPropertyDefinitions. - final Map? componentPropertyReferencesMap; + final Map? componentPropertyReferences; Node({ required this.id, @@ -48,7 +48,7 @@ class Node extends Equatable { this.pluginData, this.sharedPluginData, this.rotation, - this.componentPropertyReferencesMap, + this.componentPropertyReferences, }); @override @@ -60,7 +60,7 @@ class Node extends Equatable { pluginData, sharedPluginData, rotation, - componentPropertyReferencesMap, + componentPropertyReferences, ]; factory Node.fromJson(Map json) => _$NodeFromJson(json); diff --git a/lib/src/models/node.g.dart b/lib/src/models/node.g.dart index b7375f0..a6294dc 100644 --- a/lib/src/models/node.g.dart +++ b/lib/src/models/node.g.dart @@ -21,8 +21,8 @@ abstract class _$NodeCWProxy { Node rotation(double? rotation); - Node componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Node componentPropertyReferences( + Map? componentPropertyReferences); /// This function **does support** nullification of nullable fields. All `null` values passed to `non-nullable` fields will be ignored. You can also use `Node(...).copyWith.fieldName(...)` to override fields one at a time with nullification support. /// @@ -38,7 +38,7 @@ abstract class _$NodeCWProxy { dynamic pluginData, dynamic sharedPluginData, double? rotation, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, }); } @@ -71,9 +71,9 @@ class _$NodeCWProxyImpl implements _$NodeCWProxy { Node rotation(double? rotation) => this(rotation: rotation); @override - Node componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Node componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override @@ -91,7 +91,7 @@ class _$NodeCWProxyImpl implements _$NodeCWProxy { Object? pluginData = const $CopyWithPlaceholder(), Object? sharedPluginData = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), }) { return Node( id: id == const $CopyWithPlaceholder() || id == null @@ -124,11 +124,11 @@ class _$NodeCWProxyImpl implements _$NodeCWProxy { ? _value.rotation // ignore: cast_nullable_to_non_nullable : rotation as double?, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, ); } } @@ -151,9 +151,8 @@ Node _$NodeFromJson(Map json) => Node( pluginData: json['pluginData'], sharedPluginData: json['sharedPluginData'], rotation: (json['rotation'] as num?)?.toDouble(), - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), ); @@ -166,5 +165,5 @@ Map _$NodeToJson(Node instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, }; diff --git a/lib/src/models/rectangle.dart b/lib/src/models/rectangle.dart index 47da045..7b0f123 100644 --- a/lib/src/models/rectangle.dart +++ b/lib/src/models/rectangle.dart @@ -33,7 +33,7 @@ class Rectangle extends Vector { required super.strokeJoin, required super.strokeDashes, required super.strokeMiterAngle, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.name, super.rotation, super.pluginData, diff --git a/lib/src/models/rectangle.g.dart b/lib/src/models/rectangle.g.dart index 9bfdb8d..10f757e 100644 --- a/lib/src/models/rectangle.g.dart +++ b/lib/src/models/rectangle.g.dart @@ -37,8 +37,8 @@ abstract class _$RectangleCWProxy { Rectangle strokeMiterAngle(double strokeMiterAngle); - Rectangle componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Rectangle componentPropertyReferences( + Map? componentPropertyReferences); Rectangle name(String? name); @@ -108,7 +108,7 @@ abstract class _$RectangleCWProxy { StrokeJoin? strokeJoin, List? strokeDashes, double? strokeMiterAngle, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, String? name, double? rotation, dynamic pluginData, @@ -192,9 +192,9 @@ class _$RectangleCWProxyImpl implements _$RectangleCWProxy { this(strokeMiterAngle: strokeMiterAngle); @override - Rectangle componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Rectangle componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Rectangle name(String? name) => this(name: name); @@ -305,7 +305,7 @@ class _$RectangleCWProxyImpl implements _$RectangleCWProxy { Object? strokeJoin = const $CopyWithPlaceholder(), Object? strokeDashes = const $CopyWithPlaceholder(), Object? strokeMiterAngle = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? pluginData = const $CopyWithPlaceholder(), @@ -398,11 +398,11 @@ class _$RectangleCWProxyImpl implements _$RectangleCWProxy { ? _value.strokeMiterAngle // ignore: cast_nullable_to_non_nullable : strokeMiterAngle as double, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, name: name == const $CopyWithPlaceholder() ? _value.name // ignore: cast_nullable_to_non_nullable @@ -546,9 +546,8 @@ Rectangle _$RectangleFromJson(Map json) => Rectangle( .toList() ?? [], strokeMiterAngle: (json['strokeMiterAngle'] as num?)?.toDouble() ?? 28.96, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), name: json['name'] as String?, @@ -616,7 +615,7 @@ Map _$RectangleToJson(Rectangle instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'locked': instance.locked, 'exportSettings': instance.exportSettings, 'blendMode': _$BlendModeEnumMap[instance.blendMode], diff --git a/lib/src/models/regular_polygon.dart b/lib/src/models/regular_polygon.dart index b2a358b..d77c7e2 100644 --- a/lib/src/models/regular_polygon.dart +++ b/lib/src/models/regular_polygon.dart @@ -23,7 +23,7 @@ class RegularPolygon extends Vector { required super.strokeJoin, required super.strokeDashes, required super.strokeMiterAngle, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.name, super.rotation, super.pluginData, diff --git a/lib/src/models/regular_polygon.g.dart b/lib/src/models/regular_polygon.g.dart index 13a3f8f..dc761b4 100644 --- a/lib/src/models/regular_polygon.g.dart +++ b/lib/src/models/regular_polygon.g.dart @@ -37,8 +37,8 @@ abstract class _$RegularPolygonCWProxy { RegularPolygon strokeMiterAngle(double strokeMiterAngle); - RegularPolygon componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + RegularPolygon componentPropertyReferences( + Map? componentPropertyReferences); RegularPolygon name(String? name); @@ -105,7 +105,7 @@ abstract class _$RegularPolygonCWProxy { StrokeJoin? strokeJoin, List? strokeDashes, double? strokeMiterAngle, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, String? name, double? rotation, dynamic pluginData, @@ -188,9 +188,9 @@ class _$RegularPolygonCWProxyImpl implements _$RegularPolygonCWProxy { this(strokeMiterAngle: strokeMiterAngle); @override - RegularPolygon componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + RegularPolygon componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override RegularPolygon name(String? name) => this(name: name); @@ -296,7 +296,7 @@ class _$RegularPolygonCWProxyImpl implements _$RegularPolygonCWProxy { Object? strokeJoin = const $CopyWithPlaceholder(), Object? strokeDashes = const $CopyWithPlaceholder(), Object? strokeMiterAngle = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? pluginData = const $CopyWithPlaceholder(), @@ -387,11 +387,11 @@ class _$RegularPolygonCWProxyImpl implements _$RegularPolygonCWProxy { ? _value.strokeMiterAngle // ignore: cast_nullable_to_non_nullable : strokeMiterAngle as double, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, name: name == const $CopyWithPlaceholder() ? _value.name // ignore: cast_nullable_to_non_nullable @@ -528,9 +528,8 @@ RegularPolygon _$RegularPolygonFromJson(Map json) => .toList() ?? [], strokeMiterAngle: (json['strokeMiterAngle'] as num?)?.toDouble() ?? 28.96, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), name: json['name'] as String?, @@ -595,7 +594,7 @@ Map _$RegularPolygonToJson(RegularPolygon instance) => 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'locked': instance.locked, 'exportSettings': instance.exportSettings, 'blendMode': _$BlendModeEnumMap[instance.blendMode], diff --git a/lib/src/models/slice.dart b/lib/src/models/slice.dart index 8aeb9e2..323e90f 100644 --- a/lib/src/models/slice.dart +++ b/lib/src/models/slice.dart @@ -38,7 +38,7 @@ class Slice extends Node { Slice({ required super.id, required super.visible, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.rotation, super.name, super.type, diff --git a/lib/src/models/slice.g.dart b/lib/src/models/slice.g.dart index 060fa16..ecb4aad 100644 --- a/lib/src/models/slice.g.dart +++ b/lib/src/models/slice.g.dart @@ -11,8 +11,8 @@ abstract class _$SliceCWProxy { Slice visible(bool visible); - Slice componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Slice componentPropertyReferences( + Map? componentPropertyReferences); Slice rotation(double? rotation); @@ -43,7 +43,7 @@ abstract class _$SliceCWProxy { Slice call({ String? id, bool? visible, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, double? rotation, String? name, String? type, @@ -70,9 +70,9 @@ class _$SliceCWProxyImpl implements _$SliceCWProxy { Slice visible(bool visible) => this(visible: visible); @override - Slice componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Slice componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Slice rotation(double? rotation) => this(rotation: rotation); @@ -120,7 +120,7 @@ class _$SliceCWProxyImpl implements _$SliceCWProxy { Slice call({ Object? id = const $CopyWithPlaceholder(), Object? visible = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? type = const $CopyWithPlaceholder(), @@ -141,11 +141,11 @@ class _$SliceCWProxyImpl implements _$SliceCWProxy { ? _value.visible // ignore: cast_nullable_to_non_nullable : visible as bool, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, rotation: rotation == const $CopyWithPlaceholder() ? _value.rotation // ignore: cast_nullable_to_non_nullable @@ -205,9 +205,8 @@ extension $SliceCopyWith on Slice { Slice _$SliceFromJson(Map json) => Slice( id: json['id'] as String, visible: json['visible'] as bool? ?? true, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), rotation: (json['rotation'] as num?)?.toDouble(), @@ -242,7 +241,7 @@ Map _$SliceToJson(Slice instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'exportSettings': instance.exportSettings, 'absoluteBoundingBox': instance.absoluteBoundingBox, 'absoluteRenderBounds': instance.absoluteRenderBounds, diff --git a/lib/src/models/star.dart b/lib/src/models/star.dart index 717e83c..6b7119f 100644 --- a/lib/src/models/star.dart +++ b/lib/src/models/star.dart @@ -24,7 +24,7 @@ class Star extends Vector { required super.strokeJoin, required super.strokeDashes, required super.strokeMiterAngle, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.name, super.rotation, super.pluginData, diff --git a/lib/src/models/star.g.dart b/lib/src/models/star.g.dart index a7c9bbb..e68b98c 100644 --- a/lib/src/models/star.g.dart +++ b/lib/src/models/star.g.dart @@ -37,8 +37,8 @@ abstract class _$StarCWProxy { Star strokeMiterAngle(double strokeMiterAngle); - Star componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Star componentPropertyReferences( + Map? componentPropertyReferences); Star name(String? name); @@ -104,7 +104,7 @@ abstract class _$StarCWProxy { StrokeJoin? strokeJoin, List? strokeDashes, double? strokeMiterAngle, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, String? name, double? rotation, dynamic pluginData, @@ -185,9 +185,9 @@ class _$StarCWProxyImpl implements _$StarCWProxy { this(strokeMiterAngle: strokeMiterAngle); @override - Star componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Star componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Star name(String? name) => this(name: name); @@ -287,7 +287,7 @@ class _$StarCWProxyImpl implements _$StarCWProxy { Object? strokeJoin = const $CopyWithPlaceholder(), Object? strokeDashes = const $CopyWithPlaceholder(), Object? strokeMiterAngle = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? pluginData = const $CopyWithPlaceholder(), @@ -378,11 +378,11 @@ class _$StarCWProxyImpl implements _$StarCWProxy { ? _value.strokeMiterAngle // ignore: cast_nullable_to_non_nullable : strokeMiterAngle as double, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, name: name == const $CopyWithPlaceholder() ? _value.name // ignore: cast_nullable_to_non_nullable @@ -518,9 +518,8 @@ Star _$StarFromJson(Map json) => Star( .toList() ?? [], strokeMiterAngle: (json['strokeMiterAngle'] as num?)?.toDouble() ?? 28.96, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), name: json['name'] as String?, @@ -584,7 +583,7 @@ Map _$StarToJson(Star instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'locked': instance.locked, 'exportSettings': instance.exportSettings, 'blendMode': _$BlendModeEnumMap[instance.blendMode], diff --git a/lib/src/models/text.dart b/lib/src/models/text.dart index 9da29c3..3635f0a 100644 --- a/lib/src/models/text.dart +++ b/lib/src/models/text.dart @@ -65,7 +65,7 @@ class Text extends Vector { required super.strokeJoin, required super.strokeDashes, required super.strokeMiterAngle, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.name, super.rotation, super.pluginData, diff --git a/lib/src/models/text.g.dart b/lib/src/models/text.g.dart index 471a7c0..8b5e82b 100644 --- a/lib/src/models/text.g.dart +++ b/lib/src/models/text.g.dart @@ -37,8 +37,8 @@ abstract class _$TextCWProxy { Text strokeMiterAngle(double strokeMiterAngle); - Text componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Text componentPropertyReferences( + Map? componentPropertyReferences); Text name(String? name); @@ -116,7 +116,7 @@ abstract class _$TextCWProxy { StrokeJoin? strokeJoin, List? strokeDashes, double? strokeMiterAngle, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, String? name, double? rotation, dynamic pluginData, @@ -203,9 +203,9 @@ class _$TextCWProxyImpl implements _$TextCWProxy { this(strokeMiterAngle: strokeMiterAngle); @override - Text componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Text componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Text name(String? name) => this(name: name); @@ -326,7 +326,7 @@ class _$TextCWProxyImpl implements _$TextCWProxy { Object? strokeJoin = const $CopyWithPlaceholder(), Object? strokeDashes = const $CopyWithPlaceholder(), Object? strokeMiterAngle = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? pluginData = const $CopyWithPlaceholder(), @@ -423,11 +423,11 @@ class _$TextCWProxyImpl implements _$TextCWProxy { ? _value.strokeMiterAngle // ignore: cast_nullable_to_non_nullable : strokeMiterAngle as double, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, name: name == const $CopyWithPlaceholder() ? _value.name // ignore: cast_nullable_to_non_nullable @@ -588,9 +588,8 @@ Text _$TextFromJson(Map json) => Text( .toList() ?? [], strokeMiterAngle: (json['strokeMiterAngle'] as num?)?.toDouble() ?? 28.96, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), name: json['name'] as String?, @@ -673,7 +672,7 @@ Map _$TextToJson(Text instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'locked': instance.locked, 'exportSettings': instance.exportSettings, 'blendMode': _$BlendModeEnumMap[instance.blendMode], diff --git a/lib/src/models/vector.dart b/lib/src/models/vector.dart index 747e922..0b36c59 100644 --- a/lib/src/models/vector.dart +++ b/lib/src/models/vector.dart @@ -139,7 +139,7 @@ class Vector extends Node { Vector({ required super.id, required super.visible, - super.componentPropertyReferencesMap, + super.componentPropertyReferences, super.name, super.rotation, super.pluginData, diff --git a/lib/src/models/vector.g.dart b/lib/src/models/vector.g.dart index 4b0848e..edbaabe 100644 --- a/lib/src/models/vector.g.dart +++ b/lib/src/models/vector.g.dart @@ -11,8 +11,8 @@ abstract class _$VectorCWProxy { Vector visible(bool visible); - Vector componentPropertyReferencesMap( - Map? componentPropertyReferencesMap); + Vector componentPropertyReferences( + Map? componentPropertyReferences); Vector name(String? name); @@ -91,7 +91,7 @@ abstract class _$VectorCWProxy { Vector call({ String? id, bool? visible, - Map? componentPropertyReferencesMap, + Map? componentPropertyReferences, String? name, double? rotation, dynamic pluginData, @@ -142,9 +142,9 @@ class _$VectorCWProxyImpl implements _$VectorCWProxy { Vector visible(bool visible) => this(visible: visible); @override - Vector componentPropertyReferencesMap( - Map? componentPropertyReferencesMap) => - this(componentPropertyReferencesMap: componentPropertyReferencesMap); + Vector componentPropertyReferences( + Map? componentPropertyReferences) => + this(componentPropertyReferences: componentPropertyReferences); @override Vector name(String? name) => this(name: name); @@ -277,7 +277,7 @@ class _$VectorCWProxyImpl implements _$VectorCWProxy { Vector call({ Object? id = const $CopyWithPlaceholder(), Object? visible = const $CopyWithPlaceholder(), - Object? componentPropertyReferencesMap = const $CopyWithPlaceholder(), + Object? componentPropertyReferences = const $CopyWithPlaceholder(), Object? name = const $CopyWithPlaceholder(), Object? rotation = const $CopyWithPlaceholder(), Object? pluginData = const $CopyWithPlaceholder(), @@ -322,11 +322,11 @@ class _$VectorCWProxyImpl implements _$VectorCWProxy { ? _value.visible // ignore: cast_nullable_to_non_nullable : visible as bool, - componentPropertyReferencesMap: - componentPropertyReferencesMap == const $CopyWithPlaceholder() - ? _value.componentPropertyReferencesMap + componentPropertyReferences: + componentPropertyReferences == const $CopyWithPlaceholder() + ? _value.componentPropertyReferences // ignore: cast_nullable_to_non_nullable - : componentPropertyReferencesMap as Map?, + : componentPropertyReferences as Map?, name: name == const $CopyWithPlaceholder() ? _value.name // ignore: cast_nullable_to_non_nullable @@ -490,9 +490,8 @@ extension $VectorCopyWith on Vector { Vector _$VectorFromJson(Map json) => Vector( id: json['id'] as String, visible: json['visible'] as bool? ?? true, - componentPropertyReferencesMap: - (json['componentPropertyReferencesMap'] as Map?) - ?.map( + componentPropertyReferences: + (json['componentPropertyReferences'] as Map?)?.map( (k, e) => MapEntry(k, e as String), ), name: json['name'] as String?, @@ -587,7 +586,7 @@ Map _$VectorToJson(Vector instance) => { 'pluginData': instance.pluginData, 'sharedPluginData': instance.sharedPluginData, 'rotation': instance.rotation, - 'componentPropertyReferencesMap': instance.componentPropertyReferencesMap, + 'componentPropertyReferences': instance.componentPropertyReferences, 'locked': instance.locked, 'exportSettings': instance.exportSettings, 'blendMode': _$BlendModeEnumMap[instance.blendMode],