// GENERATED CODE - DO NOT MODIFY BY HAND part of 'design.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** _$_Design _$$_DesignFromJson(Map json) => _$_Design( components: (json['components'] as List) .map((e) => DesignComponent.fromJson(e as Map)) .toList(), wires: (json['wires'] as List) .map((e) => DesignWire.fromJson(e as Map)) .toList(), inputs: (json['inputs'] as List) .map((e) => DesignInput.fromJson(e as Map)) .toList(), outputs: (json['outputs'] as List) .map((e) => DesignOutput.fromJson(e as Map)) .toList(), ); Map _$$_DesignToJson(_$_Design instance) => { 'components': instance.components, 'wires': instance.wires, 'inputs': instance.inputs, 'outputs': instance.outputs, }; _$_DesignComponent _$$_DesignComponentFromJson(Map json) => _$_DesignComponent( instanceId: json['instanceId'] as String, x: (json['x'] as num).toDouble(), y: (json['y'] as num).toDouble(), ); Map _$$_DesignComponentToJson(_$_DesignComponent instance) => { 'instanceId': instance.instanceId, 'x': instance.x, 'y': instance.y, }; _$_DesignWire _$$_DesignWireFromJson(Map json) => _$_DesignWire( wireId: json['wireId'] as String, x: (json['x'] as num).toDouble(), y: (json['y'] as num).toDouble(), ); Map _$$_DesignWireToJson(_$_DesignWire instance) => { 'wireId': instance.wireId, 'x': instance.x, 'y': instance.y, }; _$_DesignInput _$$_DesignInputFromJson(Map json) => _$_DesignInput( name: json['name'] as String, x: (json['x'] as num).toDouble(), y: (json['y'] as num).toDouble(), ); Map _$$_DesignInputToJson(_$_DesignInput instance) => { 'name': instance.name, 'x': instance.x, 'y': instance.y, }; _$_DesignOutput _$$_DesignOutputFromJson(Map json) => _$_DesignOutput( name: json['name'] as String, x: (json['x'] as num).toDouble(), y: (json['y'] as num).toDouble(), ); Map _$$_DesignOutputToJson(_$_DesignOutput instance) => { 'name': instance.name, 'x': instance.x, 'y': instance.y, };