diff --git a/lib/src/data_transfer_objects/get_dev_fee_thresholds/get_dev_fee_threshold_result.freezed.dart b/lib/src/data_transfer_objects/get_dev_fee_thresholds/get_dev_fee_threshold_result.freezed.dart index 48005f2..0fbfa15 100644 --- a/lib/src/data_transfer_objects/get_dev_fee_thresholds/get_dev_fee_threshold_result.freezed.dart +++ b/lib/src/data_transfer_objects/get_dev_fee_thresholds/get_dev_fee_threshold_result.freezed.dart @@ -22,10 +22,12 @@ DevFeeThresholds _$DevFeeThresholdsFromJson(Map json) { mixin _$DevFeeThresholds { @JsonKey(name: 'height') int get height => throw _privateConstructorUsedError; + @JsonKey(name: 'fee_percentage') int get feePercentage => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $DevFeeThresholdsCopyWith get copyWith => throw _privateConstructorUsedError; @@ -36,6 +38,7 @@ abstract class $DevFeeThresholdsCopyWith<$Res> { factory $DevFeeThresholdsCopyWith( DevFeeThresholds value, $Res Function(DevFeeThresholds) then) = _$DevFeeThresholdsCopyWithImpl<$Res, DevFeeThresholds>; + @useResult $Res call( {@JsonKey(name: 'height') int height, @@ -49,6 +52,7 @@ class _$DevFeeThresholdsCopyWithImpl<$Res, $Val extends DevFeeThresholds> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -77,6 +81,7 @@ abstract class _$$DevFeeThresholdsImplCopyWith<$Res> factory _$$DevFeeThresholdsImplCopyWith(_$DevFeeThresholdsImpl value, $Res Function(_$DevFeeThresholdsImpl) then) = __$$DevFeeThresholdsImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -174,9 +179,11 @@ abstract class _DevFeeThresholds implements DevFeeThresholds { @override @JsonKey(name: 'height') int get height; + @override @JsonKey(name: 'fee_percentage') int get feePercentage; + @override @JsonKey(ignore: true) _$$DevFeeThresholdsImplCopyWith<_$DevFeeThresholdsImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/get_nonce_at_topoheight/get_nonce_at_topoheight_params.freezed.dart b/lib/src/data_transfer_objects/get_nonce_at_topoheight/get_nonce_at_topoheight_params.freezed.dart index 72d1cdd..0120fb7 100644 --- a/lib/src/data_transfer_objects/get_nonce_at_topoheight/get_nonce_at_topoheight_params.freezed.dart +++ b/lib/src/data_transfer_objects/get_nonce_at_topoheight/get_nonce_at_topoheight_params.freezed.dart @@ -23,10 +23,12 @@ GetNonceAtTopoHeightParams _$GetNonceAtTopoHeightParamsFromJson( mixin _$GetNonceAtTopoHeightParams { @JsonKey(name: 'address') String get address => throw _privateConstructorUsedError; + @JsonKey(name: 'topoheight') int get topoheight => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $GetNonceAtTopoHeightParamsCopyWith get copyWith => throw _privateConstructorUsedError; @@ -38,6 +40,7 @@ abstract class $GetNonceAtTopoHeightParamsCopyWith<$Res> { $Res Function(GetNonceAtTopoHeightParams) then) = _$GetNonceAtTopoHeightParamsCopyWithImpl<$Res, GetNonceAtTopoHeightParams>; + @useResult $Res call( {@JsonKey(name: 'address') String address, @@ -52,6 +55,7 @@ class _$GetNonceAtTopoHeightParamsCopyWithImpl<$Res, // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -81,6 +85,7 @@ abstract class _$$GetNonceAtTopoHeightParamsImplCopyWith<$Res> _$GetNonceAtTopoHeightParamsImpl value, $Res Function(_$GetNonceAtTopoHeightParamsImpl) then) = __$$GetNonceAtTopoHeightParamsImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -182,9 +187,11 @@ abstract class _GetNonceAtTopoHeightParams @override @JsonKey(name: 'address') String get address; + @override @JsonKey(name: 'topoheight') int get topoheight; + @override @JsonKey(ignore: true) _$$GetNonceAtTopoHeightParamsImplCopyWith<_$GetNonceAtTopoHeightParamsImpl> diff --git a/lib/src/data_transfer_objects/get_nonce_at_topoheight/get_nonce_at_topoheight_result.freezed.dart b/lib/src/data_transfer_objects/get_nonce_at_topoheight/get_nonce_at_topoheight_result.freezed.dart index 87399d6..a433540 100644 --- a/lib/src/data_transfer_objects/get_nonce_at_topoheight/get_nonce_at_topoheight_result.freezed.dart +++ b/lib/src/data_transfer_objects/get_nonce_at_topoheight/get_nonce_at_topoheight_result.freezed.dart @@ -23,10 +23,12 @@ GetNonceAtTopoHeightResult _$GetNonceAtTopoHeightResultFromJson( mixin _$GetNonceAtTopoHeightResult { @JsonKey(name: 'nonce') int get nonce => throw _privateConstructorUsedError; + @JsonKey(name: 'previous_topoheight') int? get previousTopoheight => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $GetNonceAtTopoHeightResultCopyWith get copyWith => throw _privateConstructorUsedError; @@ -38,6 +40,7 @@ abstract class $GetNonceAtTopoHeightResultCopyWith<$Res> { $Res Function(GetNonceAtTopoHeightResult) then) = _$GetNonceAtTopoHeightResultCopyWithImpl<$Res, GetNonceAtTopoHeightResult>; + @useResult $Res call( {@JsonKey(name: 'nonce') int nonce, @@ -52,6 +55,7 @@ class _$GetNonceAtTopoHeightResultCopyWithImpl<$Res, // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -81,6 +85,7 @@ abstract class _$$GetNonceAtTopoHeightResultImplCopyWith<$Res> _$GetNonceAtTopoHeightResultImpl value, $Res Function(_$GetNonceAtTopoHeightResultImpl) then) = __$$GetNonceAtTopoHeightResultImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -182,9 +187,11 @@ abstract class _GetNonceAtTopoHeightResult @override @JsonKey(name: 'nonce') int get nonce; + @override @JsonKey(name: 'previous_topoheight') int? get previousTopoheight; + @override @JsonKey(ignore: true) _$$GetNonceAtTopoHeightResultImplCopyWith<_$GetNonceAtTopoHeightResultImpl> diff --git a/lib/src/data_transfer_objects/get_size_on_disk/get_size_on_disk_result.freezed.dart b/lib/src/data_transfer_objects/get_size_on_disk/get_size_on_disk_result.freezed.dart index 66a0fc2..163c3e3 100644 --- a/lib/src/data_transfer_objects/get_size_on_disk/get_size_on_disk_result.freezed.dart +++ b/lib/src/data_transfer_objects/get_size_on_disk/get_size_on_disk_result.freezed.dart @@ -22,10 +22,12 @@ GetSizeOnDiskResult _$GetSizeOnDiskResultFromJson(Map json) { mixin _$GetSizeOnDiskResult { @JsonKey(name: 'size_bytes') int get sizeBytes => throw _privateConstructorUsedError; + @JsonKey(name: 'size_formatted') String get sizeFormatted => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $GetSizeOnDiskResultCopyWith get copyWith => throw _privateConstructorUsedError; @@ -36,6 +38,7 @@ abstract class $GetSizeOnDiskResultCopyWith<$Res> { factory $GetSizeOnDiskResultCopyWith( GetSizeOnDiskResult value, $Res Function(GetSizeOnDiskResult) then) = _$GetSizeOnDiskResultCopyWithImpl<$Res, GetSizeOnDiskResult>; + @useResult $Res call( {@JsonKey(name: 'size_bytes') int sizeBytes, @@ -49,6 +52,7 @@ class _$GetSizeOnDiskResultCopyWithImpl<$Res, $Val extends GetSizeOnDiskResult> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -77,6 +81,7 @@ abstract class _$$GetSizeOnDiskResultImplCopyWith<$Res> factory _$$GetSizeOnDiskResultImplCopyWith(_$GetSizeOnDiskResultImpl value, $Res Function(_$GetSizeOnDiskResultImpl) then) = __$$GetSizeOnDiskResultImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -175,9 +180,11 @@ abstract class _GetSizeOnDiskResult implements GetSizeOnDiskResult { @override @JsonKey(name: 'size_bytes') int get sizeBytes; + @override @JsonKey(name: 'size_formatted') String get sizeFormatted; + @override @JsonKey(ignore: true) _$$GetSizeOnDiskResultImplCopyWith<_$GetSizeOnDiskResultImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/has_balance/has_balance_params.freezed.dart b/lib/src/data_transfer_objects/has_balance/has_balance_params.freezed.dart index ca594c0..ce01734 100644 --- a/lib/src/data_transfer_objects/has_balance/has_balance_params.freezed.dart +++ b/lib/src/data_transfer_objects/has_balance/has_balance_params.freezed.dart @@ -22,12 +22,15 @@ HasBalanceParams _$HasBalanceParamsFromJson(Map json) { mixin _$HasBalanceParams { @JsonKey(name: 'address') String get address => throw _privateConstructorUsedError; + @JsonKey(name: 'asset') String get asset => throw _privateConstructorUsedError; + @JsonKey(name: 'topoheight') int? get topoheight => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $HasBalanceParamsCopyWith get copyWith => throw _privateConstructorUsedError; @@ -38,6 +41,7 @@ abstract class $HasBalanceParamsCopyWith<$Res> { factory $HasBalanceParamsCopyWith( HasBalanceParams value, $Res Function(HasBalanceParams) then) = _$HasBalanceParamsCopyWithImpl<$Res, HasBalanceParams>; + @useResult $Res call( {@JsonKey(name: 'address') String address, @@ -52,6 +56,7 @@ class _$HasBalanceParamsCopyWithImpl<$Res, $Val extends HasBalanceParams> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -85,6 +90,7 @@ abstract class _$$HasBalanceParamsImplCopyWith<$Res> factory _$$HasBalanceParamsImplCopyWith(_$HasBalanceParamsImpl value, $Res Function(_$HasBalanceParamsImpl) then) = __$$HasBalanceParamsImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -194,12 +200,15 @@ abstract class _HasBalanceParams implements HasBalanceParams { @override @JsonKey(name: 'address') String get address; + @override @JsonKey(name: 'asset') String get asset; + @override @JsonKey(name: 'topoheight') int? get topoheight; + @override @JsonKey(ignore: true) _$$HasBalanceParamsImplCopyWith<_$HasBalanceParamsImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/has_balance/has_balance_result.freezed.dart b/lib/src/data_transfer_objects/has_balance/has_balance_result.freezed.dart index 7370969..019d38e 100644 --- a/lib/src/data_transfer_objects/has_balance/has_balance_result.freezed.dart +++ b/lib/src/data_transfer_objects/has_balance/has_balance_result.freezed.dart @@ -24,6 +24,7 @@ mixin _$HasBalanceResult { bool get exist => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $HasBalanceResultCopyWith get copyWith => throw _privateConstructorUsedError; @@ -34,6 +35,7 @@ abstract class $HasBalanceResultCopyWith<$Res> { factory $HasBalanceResultCopyWith( HasBalanceResult value, $Res Function(HasBalanceResult) then) = _$HasBalanceResultCopyWithImpl<$Res, HasBalanceResult>; + @useResult $Res call({@JsonKey(name: 'exist') bool exist}); } @@ -45,6 +47,7 @@ class _$HasBalanceResultCopyWithImpl<$Res, $Val extends HasBalanceResult> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -68,6 +71,7 @@ abstract class _$$HasBalanceResultImplCopyWith<$Res> factory _$$HasBalanceResultImplCopyWith(_$HasBalanceResultImpl value, $Res Function(_$HasBalanceResultImpl) then) = __$$HasBalanceResultImplCopyWithImpl<$Res>; + @override @useResult $Res call({@JsonKey(name: 'exist') bool exist}); @@ -150,6 +154,7 @@ abstract class _HasBalanceResult implements HasBalanceResult { @override @JsonKey(name: 'exist') bool get exist; + @override @JsonKey(ignore: true) _$$HasBalanceResultImplCopyWith<_$HasBalanceResultImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/is_tx_executed_in_block/is_tx_executed_in_block_params.freezed.dart b/lib/src/data_transfer_objects/is_tx_executed_in_block/is_tx_executed_in_block_params.freezed.dart index 89e4213..19d6219 100644 --- a/lib/src/data_transfer_objects/is_tx_executed_in_block/is_tx_executed_in_block_params.freezed.dart +++ b/lib/src/data_transfer_objects/is_tx_executed_in_block/is_tx_executed_in_block_params.freezed.dart @@ -23,10 +23,12 @@ IsTxExecutedInBlockParams _$IsTxExecutedInBlockParamsFromJson( mixin _$IsTxExecutedInBlockParams { @JsonKey(name: 'tx_hash') String get txHash => throw _privateConstructorUsedError; + @JsonKey(name: 'block_hash') String get blockHash => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $IsTxExecutedInBlockParamsCopyWith get copyWith => throw _privateConstructorUsedError; @@ -37,6 +39,7 @@ abstract class $IsTxExecutedInBlockParamsCopyWith<$Res> { factory $IsTxExecutedInBlockParamsCopyWith(IsTxExecutedInBlockParams value, $Res Function(IsTxExecutedInBlockParams) then) = _$IsTxExecutedInBlockParamsCopyWithImpl<$Res, IsTxExecutedInBlockParams>; + @useResult $Res call( {@JsonKey(name: 'tx_hash') String txHash, @@ -51,6 +54,7 @@ class _$IsTxExecutedInBlockParamsCopyWithImpl<$Res, // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -80,6 +84,7 @@ abstract class _$$IsTxExecutedInBlockParamsImplCopyWith<$Res> _$IsTxExecutedInBlockParamsImpl value, $Res Function(_$IsTxExecutedInBlockParamsImpl) then) = __$$IsTxExecutedInBlockParamsImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -179,9 +184,11 @@ abstract class _IsTxExecutedInBlockParams implements IsTxExecutedInBlockParams { @override @JsonKey(name: 'tx_hash') String get txHash; + @override @JsonKey(name: 'block_hash') String get blockHash; + @override @JsonKey(ignore: true) _$$IsTxExecutedInBlockParamsImplCopyWith<_$IsTxExecutedInBlockParamsImpl> diff --git a/lib/src/data_transfer_objects/peer_peer_disconnected_event/peer_peer_disconnected_event.freezed.dart b/lib/src/data_transfer_objects/peer_peer_disconnected_event/peer_peer_disconnected_event.freezed.dart index 53339a9..ccb5391 100644 --- a/lib/src/data_transfer_objects/peer_peer_disconnected_event/peer_peer_disconnected_event.freezed.dart +++ b/lib/src/data_transfer_objects/peer_peer_disconnected_event/peer_peer_disconnected_event.freezed.dart @@ -23,10 +23,12 @@ PeerPeerDisconnectedEvent _$PeerPeerDisconnectedEventFromJson( mixin _$PeerPeerDisconnectedEvent { @JsonKey(name: 'peer_id') num get id => throw _privateConstructorUsedError; + @JsonKey(name: 'peer_addr') String get address => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $PeerPeerDisconnectedEventCopyWith get copyWith => throw _privateConstructorUsedError; @@ -37,6 +39,7 @@ abstract class $PeerPeerDisconnectedEventCopyWith<$Res> { factory $PeerPeerDisconnectedEventCopyWith(PeerPeerDisconnectedEvent value, $Res Function(PeerPeerDisconnectedEvent) then) = _$PeerPeerDisconnectedEventCopyWithImpl<$Res, PeerPeerDisconnectedEvent>; + @useResult $Res call( {@JsonKey(name: 'peer_id') num id, @@ -51,6 +54,7 @@ class _$PeerPeerDisconnectedEventCopyWithImpl<$Res, // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -80,6 +84,7 @@ abstract class _$$PeerPeerDisconnectedEventImplCopyWith<$Res> _$PeerPeerDisconnectedEventImpl value, $Res Function(_$PeerPeerDisconnectedEventImpl) then) = __$$PeerPeerDisconnectedEventImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -178,9 +183,11 @@ abstract class _PeerPeerDisconnectedEvent implements PeerPeerDisconnectedEvent { @override @JsonKey(name: 'peer_id') num get id; + @override @JsonKey(name: 'peer_addr') String get address; + @override @JsonKey(ignore: true) _$$PeerPeerDisconnectedEventImplCopyWith<_$PeerPeerDisconnectedEventImpl> diff --git a/lib/src/data_transfer_objects/peer_peer_list_updated_event/peer_peer_list_updated_event.freezed.dart b/lib/src/data_transfer_objects/peer_peer_list_updated_event/peer_peer_list_updated_event.freezed.dart index bea3cdb..f90e10a 100644 --- a/lib/src/data_transfer_objects/peer_peer_list_updated_event/peer_peer_list_updated_event.freezed.dart +++ b/lib/src/data_transfer_objects/peer_peer_list_updated_event/peer_peer_list_updated_event.freezed.dart @@ -23,10 +23,12 @@ PeerPeerListUpdatedEvent _$PeerPeerListUpdatedEventFromJson( mixin _$PeerPeerListUpdatedEvent { @JsonKey(name: 'peer_id') num get id => throw _privateConstructorUsedError; + @JsonKey(name: 'peerlist') List get peerList => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $PeerPeerListUpdatedEventCopyWith get copyWith => throw _privateConstructorUsedError; @@ -37,6 +39,7 @@ abstract class $PeerPeerListUpdatedEventCopyWith<$Res> { factory $PeerPeerListUpdatedEventCopyWith(PeerPeerListUpdatedEvent value, $Res Function(PeerPeerListUpdatedEvent) then) = _$PeerPeerListUpdatedEventCopyWithImpl<$Res, PeerPeerListUpdatedEvent>; + @useResult $Res call( {@JsonKey(name: 'peer_id') num id, @@ -51,6 +54,7 @@ class _$PeerPeerListUpdatedEventCopyWithImpl<$Res, // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -80,6 +84,7 @@ abstract class _$$PeerPeerListUpdatedEventImplCopyWith<$Res> _$PeerPeerListUpdatedEventImpl value, $Res Function(_$PeerPeerListUpdatedEventImpl) then) = __$$PeerPeerListUpdatedEventImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -131,6 +136,7 @@ class _$PeerPeerListUpdatedEventImpl implements _PeerPeerListUpdatedEvent { @JsonKey(name: 'peer_id') final num id; final List _peerList; + @override @JsonKey(name: 'peerlist') List get peerList { @@ -185,9 +191,11 @@ abstract class _PeerPeerListUpdatedEvent implements PeerPeerListUpdatedEvent { @override @JsonKey(name: 'peer_id') num get id; + @override @JsonKey(name: 'peerlist') List get peerList; + @override @JsonKey(ignore: true) _$$PeerPeerListUpdatedEventImplCopyWith<_$PeerPeerListUpdatedEventImpl> diff --git a/lib/src/data_transfer_objects/transaction/transaction_type.freezed.dart b/lib/src/data_transfer_objects/transaction/transaction_type.freezed.dart index 628d554..74dc64d 100644 --- a/lib/src/data_transfer_objects/transaction/transaction_type.freezed.dart +++ b/lib/src/data_transfer_objects/transaction/transaction_type.freezed.dart @@ -34,987 +34,948 @@ TransactionType _$TransactionTypeFromJson(Map json) { /// @nodoc mixin _$TransactionType { @optionalTypeArgs - TResult when - - < - - TResult - - extends - - Object? - - > - - ( - - { - - required - - TResult - - Function( - @JsonKey(name: 'transfers') List transfers) - transfers, - required TResult Function(@JsonKey(name: 'asset') String asset, - @JsonKey(name: 'amount') int amount) - burn, - required TResult Function( - @JsonKey(name: 'contract') String contractHash, - @JsonKey(name: 'assets') Map assets, - @JsonKey(name: 'params') Map params) - callContract, - required TResult Function( - @JsonKey(name: 'deploy_contract - - ' - - ) - - dynamic - - deployContract - - ) - - deployContract - - , -}) => -throw -_privateConstructorUsedError; - -@optionalTypeArgs -TResult? whenOrNull({ - TResult? Function(@JsonKey(name: 'transfers') List transfers)? - transfers, - TResult? Function(@JsonKey(name: 'asset') String asset, - @JsonKey(name: 'amount') int amount)? - burn, - TResult? Function(@JsonKey(name: 'contract') String contractHash, - @JsonKey(name: 'assets') Map assets, - @JsonKey(name: 'params') Map params)? - callContract, - TResult? Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? - deployContract, -}) => - throw _privateConstructorUsedError; -@optionalTypeArgs -TResult maybeWhen -< -TResult extends Object?>( -{ -TResult -Function -( -@JsonKey(name: 'transfers') List transfers)? -transfers, -TResult Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount)? -burn, -TResult Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params)? -callContract, -TResult Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? -deployContract, -required TResult orElse(), -}) => -throw _privateConstructorUsedError; -@optionalTypeArgs -TResult map({ -required TResult Function(Transfers value) transfers, -required TResult Function(Burn value) burn, -required TResult Function(CallContract value) callContract, -required TResult Function(DeployContract value) deployContract, -}) => -throw _privateConstructorUsedError; -@optionalTypeArgs -TResult? mapOrNull({ -TResult? Function(Transfers value)? transfers, -TResult? Function(Burn value)? burn, -TResult? Function(CallContract value)? callContract, -TResult? Function(DeployContract value)? deployContract, -}) => -throw _privateConstructorUsedError; -@optionalTypeArgs -TResult maybeMap({ -TResult Function(Transfers value)? transfers, -TResult Function(Burn value)? burn, -TResult Function(CallContract value)? callContract, -TResult Function(DeployContract value)? deployContract, -required TResult orElse(), -}) => -throw _privateConstructorUsedError; -Map toJson() => throw _privateConstructorUsedError; + TResult when({ + required TResult Function( + @JsonKey(name: 'transfers') List transfers) + transfers, + required TResult Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount) + burn, + required TResult Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params) + callContract, + required TResult Function( + @JsonKey(name: 'deploy_contract') dynamic deployContract) + deployContract, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(@JsonKey(name: 'transfers') List transfers)? + transfers, + TResult? Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount)? + burn, + TResult? Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params)? + callContract, + TResult? Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? + deployContract, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(@JsonKey(name: 'transfers') List transfers)? + transfers, + TResult Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount)? + burn, + TResult Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params)? + callContract, + TResult Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? + deployContract, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult map({ + required TResult Function(Transfers value) transfers, + required TResult Function(Burn value) burn, + required TResult Function(CallContract value) callContract, + required TResult Function(DeployContract value) deployContract, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Transfers value)? transfers, + TResult? Function(Burn value)? burn, + TResult? Function(CallContract value)? callContract, + TResult? Function(DeployContract value)? deployContract, + }) => + throw _privateConstructorUsedError; + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Transfers value)? transfers, + TResult Function(Burn value)? burn, + TResult Function(CallContract value)? callContract, + TResult Function(DeployContract value)? deployContract, + required TResult orElse(), + }) => + throw _privateConstructorUsedError; + Map toJson() => throw _privateConstructorUsedError; } /// @nodoc abstract class $TransactionTypeCopyWith<$Res> { -factory $TransactionTypeCopyWith( -TransactionType value, $Res Function(TransactionType) then) = -_$TransactionTypeCopyWithImpl<$Res, TransactionType>; + factory $TransactionTypeCopyWith( + TransactionType value, $Res Function(TransactionType) then) = + _$TransactionTypeCopyWithImpl<$Res, TransactionType>; } /// @nodoc class _$TransactionTypeCopyWithImpl<$Res, $Val extends TransactionType> -implements $TransactionTypeCopyWith<$Res> { -_$TransactionTypeCopyWithImpl(this._value, this._then); + implements $TransactionTypeCopyWith<$Res> { + _$TransactionTypeCopyWithImpl(this._value, this._then); -// ignore: unused_field -final $Val _value; -// ignore: unused_field -final $Res Function($Val) _then; + // ignore: unused_field + final $Val _value; + // ignore: unused_field + final $Res Function($Val) _then; } /// @nodoc abstract class _$$TransfersImplCopyWith<$Res> { -factory _$$TransfersImplCopyWith( -_$TransfersImpl value, $Res Function(_$TransfersImpl) then) = -__$$TransfersImplCopyWithImpl<$Res>; -@useResult -$Res call({@JsonKey(name: 'transfers') List transfers}); + factory _$$TransfersImplCopyWith( + _$TransfersImpl value, $Res Function(_$TransfersImpl) then) = + __$$TransfersImplCopyWithImpl<$Res>; + @useResult + $Res call({@JsonKey(name: 'transfers') List transfers}); } /// @nodoc class __$$TransfersImplCopyWithImpl<$Res> -extends _$TransactionTypeCopyWithImpl<$Res, _$TransfersImpl> -implements _$$TransfersImplCopyWith<$Res> { -__$$TransfersImplCopyWithImpl( -_$TransfersImpl _value, $Res Function(_$TransfersImpl) _then) - : super(_value, _then); - -@pragma('vm:prefer-inline') -@override -$Res call({ -Object? transfers = null, -}) { -return _then(_$TransfersImpl( -transfers: null == transfers -? _value._transfers - : transfers // ignore: cast_nullable_to_non_nullable -as List, -)); -} + extends _$TransactionTypeCopyWithImpl<$Res, _$TransfersImpl> + implements _$$TransfersImplCopyWith<$Res> { + __$$TransfersImplCopyWithImpl( + _$TransfersImpl _value, $Res Function(_$TransfersImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? transfers = null, + }) { + return _then(_$TransfersImpl( + transfers: null == transfers + ? _value._transfers + : transfers // ignore: cast_nullable_to_non_nullable + as List, + )); + } } /// @nodoc @JsonSerializable() class _$TransfersImpl implements Transfers { -const _$TransfersImpl( -{@JsonKey(name: 'transfers') required final List transfers, -final String? $type}) - : _transfers = transfers, -$type = $type ?? 'transfers'; - -factory _$TransfersImpl.fromJson(Map json) => -_$$TransfersImplFromJson(json); - -final List _transfers; -@override -@JsonKey(name: 'transfers') -List get transfers { -if (_transfers is EqualUnmodifiableListView) return _transfers; -// ignore: implicit_dynamic_type -return EqualUnmodifiableListView(_transfers); -} + const _$TransfersImpl( + {@JsonKey(name: 'transfers') required final List transfers, + final String? $type}) + : _transfers = transfers, + $type = $type ?? 'transfers'; + + factory _$TransfersImpl.fromJson(Map json) => + _$$TransfersImplFromJson(json); + + final List _transfers; + @override + @JsonKey(name: 'transfers') + List get transfers { + if (_transfers is EqualUnmodifiableListView) return _transfers; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(_transfers); + } -@JsonKey(name: 'runtimeType') -final String $type; + @JsonKey(name: 'runtimeType') + final String $type; -@override -String toString() { -return 'TransactionType.transfers(transfers: $transfers)'; -} + @override + String toString() { + return 'TransactionType.transfers(transfers: $transfers)'; + } -@override -bool operator ==(Object other) { -return identical(this, other) || -(other.runtimeType == runtimeType && -other is _$TransfersImpl && -const DeepCollectionEquality() - .equals(other._transfers, _transfers)); -} + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$TransfersImpl && + const DeepCollectionEquality() + .equals(other._transfers, _transfers)); + } -@JsonKey(ignore: true) -@override -int get hashCode => -Object.hash(runtimeType, const DeepCollectionEquality().hash(_transfers)); - -@JsonKey(ignore: true) -@override -@pragma('vm:prefer-inline') -_$$TransfersImplCopyWith<_$TransfersImpl> get copyWith => -__$$TransfersImplCopyWithImpl<_$TransfersImpl>(this, _$identity); - -@override -@optionalTypeArgs -TResult when({ -required TResult Function( -@JsonKey(name: 'transfers') List transfers) -transfers, -required TResult Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount) -burn, -required TResult Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params) -callContract, -required TResult Function( -@JsonKey(name: 'deploy_contract') dynamic deployContract) -deployContract, -}) { -return transfers(this.transfers); -} + @JsonKey(ignore: true) + @override + int get hashCode => + Object.hash(runtimeType, const DeepCollectionEquality().hash(_transfers)); -@override -@optionalTypeArgs -TResult? whenOrNull({ -TResult? Function(@JsonKey(name: 'transfers') List transfers)? -transfers, -TResult? Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount)? -burn, -TResult? Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params)? -callContract, -TResult? Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? -deployContract, -}) { -return transfers?.call(this.transfers); -} + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$TransfersImplCopyWith<_$TransfersImpl> get copyWith => + __$$TransfersImplCopyWithImpl<_$TransfersImpl>(this, _$identity); -@override -@optionalTypeArgs -TResult maybeWhen({ -TResult Function(@JsonKey(name: 'transfers') List transfers)? -transfers, -TResult Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount)? -burn, -TResult Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params)? -callContract, -TResult Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? -deployContract, -required TResult orElse(), -}) { -if (transfers != null) { -return transfers(this.transfers); -} -return orElse(); -} + @override + @optionalTypeArgs + TResult when({ + required TResult Function( + @JsonKey(name: 'transfers') List transfers) + transfers, + required TResult Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount) + burn, + required TResult Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params) + callContract, + required TResult Function( + @JsonKey(name: 'deploy_contract') dynamic deployContract) + deployContract, + }) { + return transfers(this.transfers); + } -@override -@optionalTypeArgs -TResult map({ -required TResult Function(Transfers value) transfers, -required TResult Function(Burn value) burn, -required TResult Function(CallContract value) callContract, -required TResult Function(DeployContract value) deployContract, -}) { -return transfers(this); -} + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(@JsonKey(name: 'transfers') List transfers)? + transfers, + TResult? Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount)? + burn, + TResult? Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params)? + callContract, + TResult? Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? + deployContract, + }) { + return transfers?.call(this.transfers); + } -@override -@optionalTypeArgs -TResult? mapOrNull({ -TResult? Function(Transfers value)? transfers, -TResult? Function(Burn value)? burn, -TResult? Function(CallContract value)? callContract, -TResult? Function(DeployContract value)? deployContract, -}) { -return transfers?.call(this); -} + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(@JsonKey(name: 'transfers') List transfers)? + transfers, + TResult Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount)? + burn, + TResult Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params)? + callContract, + TResult Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? + deployContract, + required TResult orElse(), + }) { + if (transfers != null) { + return transfers(this.transfers); + } + return orElse(); + } -@override -@optionalTypeArgs -TResult maybeMap({ -TResult Function(Transfers value)? transfers, -TResult Function(Burn value)? burn, -TResult Function(CallContract value)? callContract, -TResult Function(DeployContract value)? deployContract, -required TResult orElse(), -}) { -if (transfers != null) { -return transfers(this); -} -return orElse(); -} + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Transfers value) transfers, + required TResult Function(Burn value) burn, + required TResult Function(CallContract value) callContract, + required TResult Function(DeployContract value) deployContract, + }) { + return transfers(this); + } -@override -Map toJson() { -return _$$TransfersImplToJson( -this, -); -} + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Transfers value)? transfers, + TResult? Function(Burn value)? burn, + TResult? Function(CallContract value)? callContract, + TResult? Function(DeployContract value)? deployContract, + }) { + return transfers?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Transfers value)? transfers, + TResult Function(Burn value)? burn, + TResult Function(CallContract value)? callContract, + TResult Function(DeployContract value)? deployContract, + required TResult orElse(), + }) { + if (transfers != null) { + return transfers(this); + } + return orElse(); + } + + @override + Map toJson() { + return _$$TransfersImplToJson( + this, + ); + } } abstract class Transfers implements TransactionType { -const factory Transfers( -{@JsonKey(name: 'transfers') -required final List transfers}) = _$TransfersImpl; - -factory Transfers.fromJson(Map json) = -_$TransfersImpl.fromJson; - -@JsonKey(name: 'transfers') -List get transfers; -@JsonKey(ignore: true) -_$$TransfersImplCopyWith<_$TransfersImpl> get copyWith => -throw _privateConstructorUsedError; + const factory Transfers( + {@JsonKey(name: 'transfers') + required final List transfers}) = _$TransfersImpl; + + factory Transfers.fromJson(Map json) = + _$TransfersImpl.fromJson; + + @JsonKey(name: 'transfers') + List get transfers; + @JsonKey(ignore: true) + _$$TransfersImplCopyWith<_$TransfersImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$BurnImplCopyWith<$Res> { -factory _$$BurnImplCopyWith( -_$BurnImpl value, $Res Function(_$BurnImpl) then) = -__$$BurnImplCopyWithImpl<$Res>; -@useResult -$Res call( -{@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount}); + factory _$$BurnImplCopyWith( + _$BurnImpl value, $Res Function(_$BurnImpl) then) = + __$$BurnImplCopyWithImpl<$Res>; + @useResult + $Res call( + {@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount}); } /// @nodoc class __$$BurnImplCopyWithImpl<$Res> -extends _$TransactionTypeCopyWithImpl<$Res, _$BurnImpl> -implements _$$BurnImplCopyWith<$Res> { -__$$BurnImplCopyWithImpl(_$BurnImpl _value, $Res Function(_$BurnImpl) _then) - : super(_value, _then); - -@pragma('vm:prefer-inline') -@override -$Res call({ -Object? asset = null, -Object? amount = null, -}) { -return _then(_$BurnImpl( -asset: null == asset -? _value.asset - : asset // ignore: cast_nullable_to_non_nullable -as String, -amount: null == amount -? _value.amount - : amount // ignore: cast_nullable_to_non_nullable -as int, -)); -} + extends _$TransactionTypeCopyWithImpl<$Res, _$BurnImpl> + implements _$$BurnImplCopyWith<$Res> { + __$$BurnImplCopyWithImpl(_$BurnImpl _value, $Res Function(_$BurnImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? asset = null, + Object? amount = null, + }) { + return _then(_$BurnImpl( + asset: null == asset + ? _value.asset + : asset // ignore: cast_nullable_to_non_nullable + as String, + amount: null == amount + ? _value.amount + : amount // ignore: cast_nullable_to_non_nullable + as int, + )); + } } /// @nodoc @JsonSerializable() class _$BurnImpl implements Burn { -const _$BurnImpl( -{@JsonKey(name: 'asset') required this.asset, -@JsonKey(name: 'amount') required this.amount, -final String? $type}) - : $type = $type ?? 'burn'; - -factory _$BurnImpl.fromJson(Map json) => -_$$BurnImplFromJson(json); - -@override -@JsonKey(name: 'asset') -final String asset; -@override -@JsonKey(name: 'amount') -final int amount; - -@JsonKey(name: 'runtimeType') -final String $type; - -@override -String toString() { -return 'TransactionType.burn(asset: $asset, amount: $amount)'; -} + const _$BurnImpl( + {@JsonKey(name: 'asset') required this.asset, + @JsonKey(name: 'amount') required this.amount, + final String? $type}) + : $type = $type ?? 'burn'; + + factory _$BurnImpl.fromJson(Map json) => + _$$BurnImplFromJson(json); + + @override + @JsonKey(name: 'asset') + final String asset; + @override + @JsonKey(name: 'amount') + final int amount; + + @JsonKey(name: 'runtimeType') + final String $type; + + @override + String toString() { + return 'TransactionType.burn(asset: $asset, amount: $amount)'; + } -@override -bool operator ==(Object other) { -return identical(this, other) || -(other.runtimeType == runtimeType && -other is _$BurnImpl && -(identical(other.asset, asset) || other.asset == asset) && -(identical(other.amount, amount) || other.amount == amount)); -} + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$BurnImpl && + (identical(other.asset, asset) || other.asset == asset) && + (identical(other.amount, amount) || other.amount == amount)); + } -@JsonKey(ignore: true) -@override -int get hashCode => Object.hash(runtimeType, asset, amount); - -@JsonKey(ignore: true) -@override -@pragma('vm:prefer-inline') -_$$BurnImplCopyWith<_$BurnImpl> get copyWith => -__$$BurnImplCopyWithImpl<_$BurnImpl>(this, _$identity); - -@override -@optionalTypeArgs -TResult when({ -required TResult Function( -@JsonKey(name: 'transfers') List transfers) -transfers, -required TResult Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount) -burn, -required TResult Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params) -callContract, -required TResult Function( -@JsonKey(name: 'deploy_contract') dynamic deployContract) -deployContract, -}) { -return burn(asset, amount); -} + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash(runtimeType, asset, amount); -@override -@optionalTypeArgs -TResult? whenOrNull({ -TResult? Function(@JsonKey(name: 'transfers') List transfers)? -transfers, -TResult? Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount)? -burn, -TResult? Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params)? -callContract, -TResult? Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? -deployContract, -}) { -return burn?.call(asset, amount); -} + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$BurnImplCopyWith<_$BurnImpl> get copyWith => + __$$BurnImplCopyWithImpl<_$BurnImpl>(this, _$identity); -@override -@optionalTypeArgs -TResult maybeWhen({ -TResult Function(@JsonKey(name: 'transfers') List transfers)? -transfers, -TResult Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount)? -burn, -TResult Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params)? -callContract, -TResult Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? -deployContract, -required TResult orElse(), -}) { -if (burn != null) { -return burn(asset, amount); -} -return orElse(); -} + @override + @optionalTypeArgs + TResult when({ + required TResult Function( + @JsonKey(name: 'transfers') List transfers) + transfers, + required TResult Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount) + burn, + required TResult Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params) + callContract, + required TResult Function( + @JsonKey(name: 'deploy_contract') dynamic deployContract) + deployContract, + }) { + return burn(asset, amount); + } -@override -@optionalTypeArgs -TResult map({ -required TResult Function(Transfers value) transfers, -required TResult Function(Burn value) burn, -required TResult Function(CallContract value) callContract, -required TResult Function(DeployContract value) deployContract, -}) { -return burn(this); -} + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(@JsonKey(name: 'transfers') List transfers)? + transfers, + TResult? Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount)? + burn, + TResult? Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params)? + callContract, + TResult? Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? + deployContract, + }) { + return burn?.call(asset, amount); + } -@override -@optionalTypeArgs -TResult? mapOrNull({ -TResult? Function(Transfers value)? transfers, -TResult? Function(Burn value)? burn, -TResult? Function(CallContract value)? callContract, -TResult? Function(DeployContract value)? deployContract, -}) { -return burn?.call(this); -} + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(@JsonKey(name: 'transfers') List transfers)? + transfers, + TResult Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount)? + burn, + TResult Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params)? + callContract, + TResult Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? + deployContract, + required TResult orElse(), + }) { + if (burn != null) { + return burn(asset, amount); + } + return orElse(); + } -@override -@optionalTypeArgs -TResult maybeMap({ -TResult Function(Transfers value)? transfers, -TResult Function(Burn value)? burn, -TResult Function(CallContract value)? callContract, -TResult Function(DeployContract value)? deployContract, -required TResult orElse(), -}) { -if (burn != null) { -return burn(this); -} -return orElse(); -} + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Transfers value) transfers, + required TResult Function(Burn value) burn, + required TResult Function(CallContract value) callContract, + required TResult Function(DeployContract value) deployContract, + }) { + return burn(this); + } -@override -Map toJson() { -return _$$BurnImplToJson( -this, -); -} + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Transfers value)? transfers, + TResult? Function(Burn value)? burn, + TResult? Function(CallContract value)? callContract, + TResult? Function(DeployContract value)? deployContract, + }) { + return burn?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Transfers value)? transfers, + TResult Function(Burn value)? burn, + TResult Function(CallContract value)? callContract, + TResult Function(DeployContract value)? deployContract, + required TResult orElse(), + }) { + if (burn != null) { + return burn(this); + } + return orElse(); + } + + @override + Map toJson() { + return _$$BurnImplToJson( + this, + ); + } } abstract class Burn implements TransactionType { -const factory Burn( -{@JsonKey(name: 'asset') required final String asset, -@JsonKey(name: 'amount') required final int amount}) = _$BurnImpl; - -factory Burn.fromJson(Map json) = _$BurnImpl.fromJson; - -@JsonKey(name: 'asset') -String get asset; -@JsonKey(name: 'amount') -int get amount; -@JsonKey(ignore: true) -_$$BurnImplCopyWith<_$BurnImpl> get copyWith => -throw _privateConstructorUsedError; + const factory Burn( + {@JsonKey(name: 'asset') required final String asset, + @JsonKey(name: 'amount') required final int amount}) = _$BurnImpl; + + factory Burn.fromJson(Map json) = _$BurnImpl.fromJson; + + @JsonKey(name: 'asset') + String get asset; + @JsonKey(name: 'amount') + int get amount; + @JsonKey(ignore: true) + _$$BurnImplCopyWith<_$BurnImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$CallContractImplCopyWith<$Res> { -factory _$$CallContractImplCopyWith( -_$CallContractImpl value, $Res Function(_$CallContractImpl) then) = -__$$CallContractImplCopyWithImpl<$Res>; -@useResult -$Res call( -{@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params}); + factory _$$CallContractImplCopyWith( + _$CallContractImpl value, $Res Function(_$CallContractImpl) then) = + __$$CallContractImplCopyWithImpl<$Res>; + @useResult + $Res call( + {@JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params}); } /// @nodoc class __$$CallContractImplCopyWithImpl<$Res> -extends _$TransactionTypeCopyWithImpl<$Res, _$CallContractImpl> -implements _$$CallContractImplCopyWith<$Res> { -__$$CallContractImplCopyWithImpl( -_$CallContractImpl _value, $Res Function(_$CallContractImpl) _then) - : super(_value, _then); - -@pragma('vm:prefer-inline') -@override -$Res call({ -Object? contractHash = null, -Object? assets = null, -Object? params = null, -}) { -return _then(_$CallContractImpl( -contractHash: null == contractHash -? _value.contractHash - : contractHash // ignore: cast_nullable_to_non_nullable -as String, -assets: null == assets -? _value._assets - : assets // ignore: cast_nullable_to_non_nullable -as Map, -params: null == params -? _value._params - : params // ignore: cast_nullable_to_non_nullable -as Map, -)); -} + extends _$TransactionTypeCopyWithImpl<$Res, _$CallContractImpl> + implements _$$CallContractImplCopyWith<$Res> { + __$$CallContractImplCopyWithImpl( + _$CallContractImpl _value, $Res Function(_$CallContractImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? contractHash = null, + Object? assets = null, + Object? params = null, + }) { + return _then(_$CallContractImpl( + contractHash: null == contractHash + ? _value.contractHash + : contractHash // ignore: cast_nullable_to_non_nullable + as String, + assets: null == assets + ? _value._assets + : assets // ignore: cast_nullable_to_non_nullable + as Map, + params: null == params + ? _value._params + : params // ignore: cast_nullable_to_non_nullable + as Map, + )); + } } /// @nodoc @JsonSerializable() class _$CallContractImpl implements CallContract { -const _$CallContractImpl( -{@JsonKey(name: 'contract') required this.contractHash, -@JsonKey(name: 'assets') required final Map assets, -@JsonKey(name: 'params') required final Map params, -final String? $type}) - : _assets = assets, -_params = params, -$type = $type ?? 'callContract'; - -factory _$CallContractImpl.fromJson(Map json) => -_$$CallContractImplFromJson(json); - -@override -@JsonKey(name: 'contract') -final String contractHash; -final Map _assets; -@override -@JsonKey(name: 'assets') -Map get assets { -if (_assets is EqualUnmodifiableMapView) return _assets; -// ignore: implicit_dynamic_type -return EqualUnmodifiableMapView(_assets); -} + const _$CallContractImpl( + {@JsonKey(name: 'contract') required this.contractHash, + @JsonKey(name: 'assets') required final Map assets, + @JsonKey(name: 'params') required final Map params, + final String? $type}) + : _assets = assets, + _params = params, + $type = $type ?? 'callContract'; + + factory _$CallContractImpl.fromJson(Map json) => + _$$CallContractImplFromJson(json); + + @override + @JsonKey(name: 'contract') + final String contractHash; + final Map _assets; + @override + @JsonKey(name: 'assets') + Map get assets { + if (_assets is EqualUnmodifiableMapView) return _assets; + // ignore: implicit_dynamic_type + return EqualUnmodifiableMapView(_assets); + } -final Map _params; -@override -@JsonKey(name: 'params') -Map get params { -if (_params is EqualUnmodifiableMapView) return _params; -// ignore: implicit_dynamic_type -return EqualUnmodifiableMapView(_params); -} + final Map _params; + @override + @JsonKey(name: 'params') + Map get params { + if (_params is EqualUnmodifiableMapView) return _params; + // ignore: implicit_dynamic_type + return EqualUnmodifiableMapView(_params); + } -@JsonKey(name: 'runtimeType') -final String $type; + @JsonKey(name: 'runtimeType') + final String $type; -@override -String toString() { -return 'TransactionType.callContract(contractHash: $contractHash, assets: $assets, params: $params)'; -} + @override + String toString() { + return 'TransactionType.callContract(contractHash: $contractHash, assets: $assets, params: $params)'; + } -@override -bool operator ==(Object other) { -return identical(this, other) || -(other.runtimeType == runtimeType && -other is _$CallContractImpl && -(identical(other.contractHash, contractHash) || -other.contractHash == contractHash) && -const DeepCollectionEquality().equals(other._assets, _assets) && -const DeepCollectionEquality().equals(other._params, _params)); -} + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$CallContractImpl && + (identical(other.contractHash, contractHash) || + other.contractHash == contractHash) && + const DeepCollectionEquality().equals(other._assets, _assets) && + const DeepCollectionEquality().equals(other._params, _params)); + } -@JsonKey(ignore: true) -@override -int get hashCode => Object.hash( -runtimeType, -contractHash, -const DeepCollectionEquality().hash(_assets), -const DeepCollectionEquality().hash(_params)); - -@JsonKey(ignore: true) -@override -@pragma('vm:prefer-inline') -_$$CallContractImplCopyWith<_$CallContractImpl> get copyWith => -__$$CallContractImplCopyWithImpl<_$CallContractImpl>(this, _$identity); - -@override -@optionalTypeArgs -TResult when({ -required TResult Function( -@JsonKey(name: 'transfers') List transfers) -transfers, -required TResult Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount) -burn, -required TResult Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params) -callContract, -required TResult Function( -@JsonKey(name: 'deploy_contract') dynamic deployContract) -deployContract, -}) { -return callContract(contractHash, assets, params); -} + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash( + runtimeType, + contractHash, + const DeepCollectionEquality().hash(_assets), + const DeepCollectionEquality().hash(_params)); + + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$CallContractImplCopyWith<_$CallContractImpl> get copyWith => + __$$CallContractImplCopyWithImpl<_$CallContractImpl>(this, _$identity); + + @override + @optionalTypeArgs + TResult when({ + required TResult Function( + @JsonKey(name: 'transfers') List transfers) + transfers, + required TResult Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount) + burn, + required TResult Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params) + callContract, + required TResult Function( + @JsonKey(name: 'deploy_contract') dynamic deployContract) + deployContract, + }) { + return callContract(contractHash, assets, params); + } -@override -@optionalTypeArgs -TResult? whenOrNull({ -TResult? Function(@JsonKey(name: 'transfers') List transfers)? -transfers, -TResult? Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount)? -burn, -TResult? Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params)? -callContract, -TResult? Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? -deployContract, -}) { -return callContract?.call(contractHash, assets, params); -} + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(@JsonKey(name: 'transfers') List transfers)? + transfers, + TResult? Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount)? + burn, + TResult? Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params)? + callContract, + TResult? Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? + deployContract, + }) { + return callContract?.call(contractHash, assets, params); + } -@override -@optionalTypeArgs -TResult maybeWhen({ -TResult Function(@JsonKey(name: 'transfers') List transfers)? -transfers, -TResult Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount)? -burn, -TResult Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params)? -callContract, -TResult Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? -deployContract, -required TResult orElse(), -}) { -if (callContract != null) { -return callContract(contractHash, assets, params); -} -return orElse(); -} + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(@JsonKey(name: 'transfers') List transfers)? + transfers, + TResult Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount)? + burn, + TResult Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params)? + callContract, + TResult Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? + deployContract, + required TResult orElse(), + }) { + if (callContract != null) { + return callContract(contractHash, assets, params); + } + return orElse(); + } -@override -@optionalTypeArgs -TResult map({ -required TResult Function(Transfers value) transfers, -required TResult Function(Burn value) burn, -required TResult Function(CallContract value) callContract, -required TResult Function(DeployContract value) deployContract, -}) { -return callContract(this); -} + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Transfers value) transfers, + required TResult Function(Burn value) burn, + required TResult Function(CallContract value) callContract, + required TResult Function(DeployContract value) deployContract, + }) { + return callContract(this); + } -@override -@optionalTypeArgs -TResult? mapOrNull({ -TResult? Function(Transfers value)? transfers, -TResult? Function(Burn value)? burn, -TResult? Function(CallContract value)? callContract, -TResult? Function(DeployContract value)? deployContract, -}) { -return callContract?.call(this); -} + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Transfers value)? transfers, + TResult? Function(Burn value)? burn, + TResult? Function(CallContract value)? callContract, + TResult? Function(DeployContract value)? deployContract, + }) { + return callContract?.call(this); + } -@override -@optionalTypeArgs -TResult maybeMap({ -TResult Function(Transfers value)? transfers, -TResult Function(Burn value)? burn, -TResult Function(CallContract value)? callContract, -TResult Function(DeployContract value)? deployContract, -required TResult orElse(), -}) { -if (callContract != null) { -return callContract(this); -} -return orElse(); -} + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Transfers value)? transfers, + TResult Function(Burn value)? burn, + TResult Function(CallContract value)? callContract, + TResult Function(DeployContract value)? deployContract, + required TResult orElse(), + }) { + if (callContract != null) { + return callContract(this); + } + return orElse(); + } -@override -Map toJson() { -return _$$CallContractImplToJson( -this, -); -} + @override + Map toJson() { + return _$$CallContractImplToJson( + this, + ); + } } abstract class CallContract implements TransactionType { -const factory CallContract( -{@JsonKey(name: 'contract') required final String contractHash, -@JsonKey(name: 'assets') required final Map assets, -@JsonKey(name: 'params') -required final Map params}) = _$CallContractImpl; - -factory CallContract.fromJson(Map json) = -_$CallContractImpl.fromJson; - -@JsonKey(name: 'contract') -String get contractHash; -@JsonKey(name: 'assets') -Map get assets; -@JsonKey(name: 'params') -Map get params; -@JsonKey(ignore: true) -_$$CallContractImplCopyWith<_$CallContractImpl> get copyWith => -throw _privateConstructorUsedError; + const factory CallContract( + {@JsonKey(name: 'contract') required final String contractHash, + @JsonKey(name: 'assets') required final Map assets, + @JsonKey(name: 'params') + required final Map params}) = _$CallContractImpl; + + factory CallContract.fromJson(Map json) = + _$CallContractImpl.fromJson; + + @JsonKey(name: 'contract') + String get contractHash; + @JsonKey(name: 'assets') + Map get assets; + @JsonKey(name: 'params') + Map get params; + @JsonKey(ignore: true) + _$$CallContractImplCopyWith<_$CallContractImpl> get copyWith => + throw _privateConstructorUsedError; } /// @nodoc abstract class _$$DeployContractImplCopyWith<$Res> { -factory _$$DeployContractImplCopyWith(_$DeployContractImpl value, -$Res Function(_$DeployContractImpl) then) = -__$$DeployContractImplCopyWithImpl<$Res>; -@useResult -$Res call({@JsonKey(name: 'deploy_contract') dynamic deployContract}); + factory _$$DeployContractImplCopyWith(_$DeployContractImpl value, + $Res Function(_$DeployContractImpl) then) = + __$$DeployContractImplCopyWithImpl<$Res>; + @useResult + $Res call({@JsonKey(name: 'deploy_contract') dynamic deployContract}); } /// @nodoc class __$$DeployContractImplCopyWithImpl<$Res> -extends _$TransactionTypeCopyWithImpl<$Res, _$DeployContractImpl> -implements _$$DeployContractImplCopyWith<$Res> { -__$$DeployContractImplCopyWithImpl( -_$DeployContractImpl _value, $Res Function(_$DeployContractImpl) _then) - : super(_value, _then); - -@pragma('vm:prefer-inline') -@override -$Res call({ -Object? deployContract = freezed, -}) { -return _then(_$DeployContractImpl( -freezed == deployContract -? _value.deployContract - : deployContract // ignore: cast_nullable_to_non_nullable -as dynamic, -)); -} + extends _$TransactionTypeCopyWithImpl<$Res, _$DeployContractImpl> + implements _$$DeployContractImplCopyWith<$Res> { + __$$DeployContractImplCopyWithImpl( + _$DeployContractImpl _value, $Res Function(_$DeployContractImpl) _then) + : super(_value, _then); + + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? deployContract = freezed, + }) { + return _then(_$DeployContractImpl( + freezed == deployContract + ? _value.deployContract + : deployContract // ignore: cast_nullable_to_non_nullable + as dynamic, + )); + } } /// @nodoc @JsonSerializable() class _$DeployContractImpl implements DeployContract { -const _$DeployContractImpl( -@JsonKey(name: 'deploy_contract') this.deployContract, -{final String? $type}) - : $type = $type ?? 'deployContract'; + const _$DeployContractImpl( + @JsonKey(name: 'deploy_contract') this.deployContract, + {final String? $type}) + : $type = $type ?? 'deployContract'; -factory _$DeployContractImpl.fromJson(Map json) => -_$$DeployContractImplFromJson(json); + factory _$DeployContractImpl.fromJson(Map json) => + _$$DeployContractImplFromJson(json); -@override -@JsonKey(name: 'deploy_contract') -final dynamic deployContract; + @override + @JsonKey(name: 'deploy_contract') + final dynamic deployContract; -@JsonKey(name: 'runtimeType') -final String $type; + @JsonKey(name: 'runtimeType') + final String $type; -@override -String toString() { -return 'TransactionType.deployContract(deployContract: $deployContract)'; -} + @override + String toString() { + return 'TransactionType.deployContract(deployContract: $deployContract)'; + } -@override -bool operator ==(Object other) { -return identical(this, other) || -(other.runtimeType == runtimeType && -other is _$DeployContractImpl && -const DeepCollectionEquality() - .equals(other.deployContract, deployContract)); -} + @override + bool operator ==(Object other) { + return identical(this, other) || + (other.runtimeType == runtimeType && + other is _$DeployContractImpl && + const DeepCollectionEquality() + .equals(other.deployContract, deployContract)); + } -@JsonKey(ignore: true) -@override -int get hashCode => Object.hash( -runtimeType, const DeepCollectionEquality().hash(deployContract)); - -@JsonKey(ignore: true) -@override -@pragma('vm:prefer-inline') -_$$DeployContractImplCopyWith<_$DeployContractImpl> get copyWith => -__$$DeployContractImplCopyWithImpl<_$DeployContractImpl>( -this, _$identity); - -@override -@optionalTypeArgs -TResult when({ -required TResult Function( -@JsonKey(name: 'transfers') List transfers) -transfers, -required TResult Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount) -burn, -required TResult Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params) -callContract, -required TResult Function( -@JsonKey(name: 'deploy_contract') dynamic deployContract) -deployContract, -}) { -return deployContract(this.deployContract); -} + @JsonKey(ignore: true) + @override + int get hashCode => Object.hash( + runtimeType, const DeepCollectionEquality().hash(deployContract)); -@override -@optionalTypeArgs -TResult? whenOrNull({ -TResult? Function(@JsonKey(name: 'transfers') List transfers)? -transfers, -TResult? Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount)? -burn, -TResult? Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params)? -callContract, -TResult? Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? -deployContract, -}) { -return deployContract?.call(this.deployContract); -} + @JsonKey(ignore: true) + @override + @pragma('vm:prefer-inline') + _$$DeployContractImplCopyWith<_$DeployContractImpl> get copyWith => + __$$DeployContractImplCopyWithImpl<_$DeployContractImpl>( + this, _$identity); -@override -@optionalTypeArgs -TResult maybeWhen({ -TResult Function(@JsonKey(name: 'transfers') List transfers)? -transfers, -TResult Function(@JsonKey(name: 'asset') String asset, -@JsonKey(name: 'amount') int amount)? -burn, -TResult Function( -@JsonKey(name: 'contract') String contractHash, -@JsonKey(name: 'assets') Map assets, -@JsonKey(name: 'params') Map params)? -callContract, -TResult Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? -deployContract, -required TResult orElse(), -}) { -if (deployContract != null) { -return deployContract(this.deployContract); -} -return orElse(); -} + @override + @optionalTypeArgs + TResult when({ + required TResult Function( + @JsonKey(name: 'transfers') List transfers) + transfers, + required TResult Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount) + burn, + required TResult Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params) + callContract, + required TResult Function( + @JsonKey(name: 'deploy_contract') dynamic deployContract) + deployContract, + }) { + return deployContract(this.deployContract); + } -@override -@optionalTypeArgs -TResult map({ -required TResult Function(Transfers value) transfers, -required TResult Function(Burn value) burn, -required TResult Function(CallContract value) callContract, -required TResult Function(DeployContract value) deployContract, -}) { -return deployContract(this); -} + @override + @optionalTypeArgs + TResult? whenOrNull({ + TResult? Function(@JsonKey(name: 'transfers') List transfers)? + transfers, + TResult? Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount)? + burn, + TResult? Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params)? + callContract, + TResult? Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? + deployContract, + }) { + return deployContract?.call(this.deployContract); + } -@override -@optionalTypeArgs -TResult? mapOrNull({ -TResult? Function(Transfers value)? transfers, -TResult? Function(Burn value)? burn, -TResult? Function(CallContract value)? callContract, -TResult? Function(DeployContract value)? deployContract, -}) { -return deployContract?.call(this); -} + @override + @optionalTypeArgs + TResult maybeWhen({ + TResult Function(@JsonKey(name: 'transfers') List transfers)? + transfers, + TResult Function(@JsonKey(name: 'asset') String asset, + @JsonKey(name: 'amount') int amount)? + burn, + TResult Function( + @JsonKey(name: 'contract') String contractHash, + @JsonKey(name: 'assets') Map assets, + @JsonKey(name: 'params') Map params)? + callContract, + TResult Function(@JsonKey(name: 'deploy_contract') dynamic deployContract)? + deployContract, + required TResult orElse(), + }) { + if (deployContract != null) { + return deployContract(this.deployContract); + } + return orElse(); + } -@override -@optionalTypeArgs -TResult maybeMap({ -TResult Function(Transfers value)? transfers, -TResult Function(Burn value)? burn, -TResult Function(CallContract value)? callContract, -TResult Function(DeployContract value)? deployContract, -required TResult orElse(), -}) { -if (deployContract != null) { -return deployContract(this); -} -return orElse(); -} + @override + @optionalTypeArgs + TResult map({ + required TResult Function(Transfers value) transfers, + required TResult Function(Burn value) burn, + required TResult Function(CallContract value) callContract, + required TResult Function(DeployContract value) deployContract, + }) { + return deployContract(this); + } -@override -Map toJson() { -return _$$DeployContractImplToJson( -this, -); -} + @override + @optionalTypeArgs + TResult? mapOrNull({ + TResult? Function(Transfers value)? transfers, + TResult? Function(Burn value)? burn, + TResult? Function(CallContract value)? callContract, + TResult? Function(DeployContract value)? deployContract, + }) { + return deployContract?.call(this); + } + + @override + @optionalTypeArgs + TResult maybeMap({ + TResult Function(Transfers value)? transfers, + TResult Function(Burn value)? burn, + TResult Function(CallContract value)? callContract, + TResult Function(DeployContract value)? deployContract, + required TResult orElse(), + }) { + if (deployContract != null) { + return deployContract(this); + } + return orElse(); + } + + @override + Map toJson() { + return _$$DeployContractImplToJson( + this, + ); + } } abstract class DeployContract implements TransactionType { -const factory DeployContract( -@JsonKey(name: 'deploy_contract') final dynamic deployContract) = -_$DeployContractImpl; - -factory DeployContract.fromJson(Map json) = -_$DeployContractImpl.fromJson; - -@JsonKey(name: 'deploy_contract') -dynamic get deployContract; -@JsonKey(ignore: true) -_$$DeployContractImplCopyWith<_$DeployContractImpl> get copyWith => -throw _privateConstructorUsedError; + const factory DeployContract( + @JsonKey(name: 'deploy_contract') final dynamic deployContract) = + _$DeployContractImpl; + + factory DeployContract.fromJson(Map json) = + _$DeployContractImpl.fromJson; + + @JsonKey(name: 'deploy_contract') + dynamic get deployContract; + @JsonKey(ignore: true) + _$$DeployContractImplCopyWith<_$DeployContractImpl> get copyWith => + throw _privateConstructorUsedError; } diff --git a/lib/src/data_transfer_objects/transaction/transfer.freezed.dart b/lib/src/data_transfer_objects/transaction/transfer.freezed.dart index d0b4d46..652a916 100644 --- a/lib/src/data_transfer_objects/transaction/transfer.freezed.dart +++ b/lib/src/data_transfer_objects/transaction/transfer.freezed.dart @@ -22,18 +22,14 @@ Transfer _$TransferFromJson(Map json) { mixin _$Transfer { @JsonKey(name: 'amount') int get amount => throw _privateConstructorUsedError; - @JsonKey(name: 'asset') String get asset => throw _privateConstructorUsedError; - @JsonKey(name: 'to') String get to => throw _privateConstructorUsedError; - @JsonKey(name: 'extra_data') dynamic get extraData => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) $TransferCopyWith get copyWith => throw _privateConstructorUsedError; @@ -43,7 +39,6 @@ mixin _$Transfer { abstract class $TransferCopyWith<$Res> { factory $TransferCopyWith(Transfer value, $Res Function(Transfer) then) = _$TransferCopyWithImpl<$Res, Transfer>; - @useResult $Res call( {@JsonKey(name: 'amount') int amount, @@ -97,7 +92,6 @@ abstract class _$$TransferImplCopyWith<$Res> factory _$$TransferImplCopyWith( _$TransferImpl value, $Res Function(_$TransferImpl) then) = __$$TransferImplCopyWithImpl<$Res>; - @override @useResult $Res call( @@ -217,19 +211,15 @@ abstract class _Transfer implements Transfer { @override @JsonKey(name: 'amount') int get amount; - @override @JsonKey(name: 'asset') String get asset; - @override @JsonKey(name: 'to') String get to; - @override @JsonKey(name: 'extra_data') dynamic get extraData; - @override @JsonKey(ignore: true) _$$TransferImplCopyWith<_$TransferImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/wallet/balance_changed_event/balance_changed_event.freezed.dart b/lib/src/data_transfer_objects/wallet/balance_changed_event/balance_changed_event.freezed.dart index e5b9f0d..90146cd 100644 --- a/lib/src/data_transfer_objects/wallet/balance_changed_event/balance_changed_event.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/balance_changed_event/balance_changed_event.freezed.dart @@ -22,10 +22,12 @@ BalanceChangedEvent _$BalanceChangedEventFromJson(Map json) { mixin _$BalanceChangedEvent { @JsonKey(name: 'asset') String get assetHash => throw _privateConstructorUsedError; + @JsonKey(name: 'balance') int get balance => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $BalanceChangedEventCopyWith get copyWith => throw _privateConstructorUsedError; @@ -36,6 +38,7 @@ abstract class $BalanceChangedEventCopyWith<$Res> { factory $BalanceChangedEventCopyWith( BalanceChangedEvent value, $Res Function(BalanceChangedEvent) then) = _$BalanceChangedEventCopyWithImpl<$Res, BalanceChangedEvent>; + @useResult $Res call( {@JsonKey(name: 'asset') String assetHash, @@ -49,6 +52,7 @@ class _$BalanceChangedEventCopyWithImpl<$Res, $Val extends BalanceChangedEvent> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -77,6 +81,7 @@ abstract class _$$BalanceChangedEventImplCopyWith<$Res> factory _$$BalanceChangedEventImplCopyWith(_$BalanceChangedEventImpl value, $Res Function(_$BalanceChangedEventImpl) then) = __$$BalanceChangedEventImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -174,9 +179,11 @@ abstract class _BalanceChangedEvent implements BalanceChangedEvent { @override @JsonKey(name: 'asset') String get assetHash; + @override @JsonKey(name: 'balance') int get balance; + @override @JsonKey(ignore: true) _$$BalanceChangedEventImplCopyWith<_$BalanceChangedEventImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/wallet/build_transaction/fee_builder.freezed.dart b/lib/src/data_transfer_objects/wallet/build_transaction/fee_builder.freezed.dart index 942590c..36cf64f 100644 --- a/lib/src/data_transfer_objects/wallet/build_transaction/fee_builder.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/build_transaction/fee_builder.freezed.dart @@ -22,10 +22,12 @@ FeeBuilder _$FeeBuilderFromJson(Map json) { mixin _$FeeBuilder { @JsonKey(name: 'Multiplier') double? get multiplier => throw _privateConstructorUsedError; + @JsonKey(name: 'Value') int? get value => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $FeeBuilderCopyWith get copyWith => throw _privateConstructorUsedError; @@ -36,6 +38,7 @@ abstract class $FeeBuilderCopyWith<$Res> { factory $FeeBuilderCopyWith( FeeBuilder value, $Res Function(FeeBuilder) then) = _$FeeBuilderCopyWithImpl<$Res, FeeBuilder>; + @useResult $Res call( {@JsonKey(name: 'Multiplier') double? multiplier, @@ -49,6 +52,7 @@ class _$FeeBuilderCopyWithImpl<$Res, $Val extends FeeBuilder> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -77,6 +81,7 @@ abstract class _$$FeeBuilderImplCopyWith<$Res> factory _$$FeeBuilderImplCopyWith( _$FeeBuilderImpl value, $Res Function(_$FeeBuilderImpl) then) = __$$FeeBuilderImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -172,9 +177,11 @@ abstract class _FeeBuilder implements FeeBuilder { @override @JsonKey(name: 'Multiplier') double? get multiplier; + @override @JsonKey(name: 'Value') int? get value; + @override @JsonKey(ignore: true) _$$FeeBuilderImplCopyWith<_$FeeBuilderImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/wallet/get_address/get_address_params.freezed.dart b/lib/src/data_transfer_objects/wallet/get_address/get_address_params.freezed.dart index 8733221..d9ca30b 100644 --- a/lib/src/data_transfer_objects/wallet/get_address/get_address_params.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/get_address/get_address_params.freezed.dart @@ -24,6 +24,7 @@ mixin _$GetAddressParams { Map get integratedData => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $GetAddressParamsCopyWith get copyWith => throw _privateConstructorUsedError; @@ -34,6 +35,7 @@ abstract class $GetAddressParamsCopyWith<$Res> { factory $GetAddressParamsCopyWith( GetAddressParams value, $Res Function(GetAddressParams) then) = _$GetAddressParamsCopyWithImpl<$Res, GetAddressParams>; + @useResult $Res call( {@JsonKey(name: 'integrated_data') Map integratedData}); @@ -46,6 +48,7 @@ class _$GetAddressParamsCopyWithImpl<$Res, $Val extends GetAddressParams> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -69,6 +72,7 @@ abstract class _$$GetAddressParamsImplCopyWith<$Res> factory _$$GetAddressParamsImplCopyWith(_$GetAddressParamsImpl value, $Res Function(_$GetAddressParamsImpl) then) = __$$GetAddressParamsImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -109,6 +113,7 @@ class _$GetAddressParamsImpl implements _GetAddressParams { _$$GetAddressParamsImplFromJson(json); final Map _integratedData; + @override @JsonKey(name: 'integrated_data') Map get integratedData { @@ -163,6 +168,7 @@ abstract class _GetAddressParams implements GetAddressParams { @override @JsonKey(name: 'integrated_data') Map get integratedData; + @override @JsonKey(ignore: true) _$$GetAddressParamsImplCopyWith<_$GetAddressParamsImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/wallet/list_transactions/list_transactions_params.freezed.dart b/lib/src/data_transfer_objects/wallet/list_transactions/list_transactions_params.freezed.dart index 73739b4..4b99c50 100644 --- a/lib/src/data_transfer_objects/wallet/list_transactions/list_transactions_params.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/list_transactions/list_transactions_params.freezed.dart @@ -23,20 +23,27 @@ ListTransactionsParams _$ListTransactionsParamsFromJson( mixin _$ListTransactionsParams { @JsonKey(name: 'min_topoheight') int? get minTopoHeight => throw _privateConstructorUsedError; + @JsonKey(name: 'max_topoheight') int? get maxTopoHeight => throw _privateConstructorUsedError; + @JsonKey(name: 'address') String? get address => throw _privateConstructorUsedError; + @JsonKey(name: 'accept_incoming') bool? get acceptIncoming => throw _privateConstructorUsedError; + @JsonKey(name: 'accept_outgoing') bool? get acceptOutgoing => throw _privateConstructorUsedError; + @JsonKey(name: 'accept_coinbase') bool? get acceptCoinbase => throw _privateConstructorUsedError; + @JsonKey(name: 'accept_burn') bool? get acceptBurn => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $ListTransactionsParamsCopyWith get copyWith => throw _privateConstructorUsedError; @@ -47,6 +54,7 @@ abstract class $ListTransactionsParamsCopyWith<$Res> { factory $ListTransactionsParamsCopyWith(ListTransactionsParams value, $Res Function(ListTransactionsParams) then) = _$ListTransactionsParamsCopyWithImpl<$Res, ListTransactionsParams>; + @useResult $Res call( {@JsonKey(name: 'min_topoheight') int? minTopoHeight, @@ -66,6 +74,7 @@ class _$ListTransactionsParamsCopyWithImpl<$Res, // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -120,6 +129,7 @@ abstract class _$$ListTransactionsParamsImplCopyWith<$Res> _$ListTransactionsParamsImpl value, $Res Function(_$ListTransactionsParamsImpl) then) = __$$ListTransactionsParamsImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -286,24 +296,31 @@ abstract class _ListTransactionsParams implements ListTransactionsParams { @override @JsonKey(name: 'min_topoheight') int? get minTopoHeight; + @override @JsonKey(name: 'max_topoheight') int? get maxTopoHeight; + @override @JsonKey(name: 'address') String? get address; + @override @JsonKey(name: 'accept_incoming') bool? get acceptIncoming; + @override @JsonKey(name: 'accept_outgoing') bool? get acceptOutgoing; + @override @JsonKey(name: 'accept_coinbase') bool? get acceptCoinbase; + @override @JsonKey(name: 'accept_burn') bool? get acceptBurn; + @override @JsonKey(ignore: true) _$$ListTransactionsParamsImplCopyWith<_$ListTransactionsParamsImpl> diff --git a/lib/src/data_transfer_objects/wallet/new_asset_event/asset_with_data.freezed.dart b/lib/src/data_transfer_objects/wallet/new_asset_event/asset_with_data.freezed.dart index 1f0eeb8..8bc0f3b 100644 --- a/lib/src/data_transfer_objects/wallet/new_asset_event/asset_with_data.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/new_asset_event/asset_with_data.freezed.dart @@ -22,12 +22,15 @@ AssetWithData _$AssetWithDataFromJson(Map json) { mixin _$AssetWithData { @JsonKey(name: 'asset') String get assetHash => throw _privateConstructorUsedError; + @JsonKey(name: 'topoheight') int get topoHeight => throw _privateConstructorUsedError; + @JsonKey(name: 'decimals') int get decimals => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $AssetWithDataCopyWith get copyWith => throw _privateConstructorUsedError; @@ -38,6 +41,7 @@ abstract class $AssetWithDataCopyWith<$Res> { factory $AssetWithDataCopyWith( AssetWithData value, $Res Function(AssetWithData) then) = _$AssetWithDataCopyWithImpl<$Res, AssetWithData>; + @useResult $Res call( {@JsonKey(name: 'asset') String assetHash, @@ -52,6 +56,7 @@ class _$AssetWithDataCopyWithImpl<$Res, $Val extends AssetWithData> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -85,6 +90,7 @@ abstract class _$$AssetWithDataImplCopyWith<$Res> factory _$$AssetWithDataImplCopyWith( _$AssetWithDataImpl value, $Res Function(_$AssetWithDataImpl) then) = __$$AssetWithDataImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -195,12 +201,15 @@ abstract class _AssetWithData implements AssetWithData { @override @JsonKey(name: 'asset') String get assetHash; + @override @JsonKey(name: 'topoheight') int get topoHeight; + @override @JsonKey(name: 'decimals') int get decimals; + @override @JsonKey(ignore: true) _$$AssetWithDataImplCopyWith<_$AssetWithDataImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/wallet/rescan/rescan_params.freezed.dart b/lib/src/data_transfer_objects/wallet/rescan/rescan_params.freezed.dart index 091934e..b9aa52e 100644 --- a/lib/src/data_transfer_objects/wallet/rescan/rescan_params.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/rescan/rescan_params.freezed.dart @@ -24,6 +24,7 @@ mixin _$RescanParams { int get topoHeight => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $RescanParamsCopyWith get copyWith => throw _privateConstructorUsedError; @@ -34,6 +35,7 @@ abstract class $RescanParamsCopyWith<$Res> { factory $RescanParamsCopyWith( RescanParams value, $Res Function(RescanParams) then) = _$RescanParamsCopyWithImpl<$Res, RescanParams>; + @useResult $Res call({@JsonKey(name: 'topoheight') int topoHeight}); } @@ -45,6 +47,7 @@ class _$RescanParamsCopyWithImpl<$Res, $Val extends RescanParams> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -68,6 +71,7 @@ abstract class _$$RescanParamsImplCopyWith<$Res> factory _$$RescanParamsImplCopyWith( _$RescanParamsImpl value, $Res Function(_$RescanParamsImpl) then) = __$$RescanParamsImplCopyWithImpl<$Res>; + @override @useResult $Res call({@JsonKey(name: 'topoheight') int topoHeight}); @@ -151,6 +155,7 @@ abstract class _RescanParams implements RescanParams { @override @JsonKey(name: 'topoheight') int get topoHeight; + @override @JsonKey(ignore: true) _$$RescanParamsImplCopyWith<_$RescanParamsImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/wallet/split_address/split_address_params.freezed.dart b/lib/src/data_transfer_objects/wallet/split_address/split_address_params.freezed.dart index c8c387b..fe03f68 100644 --- a/lib/src/data_transfer_objects/wallet/split_address/split_address_params.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/split_address/split_address_params.freezed.dart @@ -24,6 +24,7 @@ mixin _$SplitAddressParams { String get address => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $SplitAddressParamsCopyWith get copyWith => throw _privateConstructorUsedError; @@ -34,6 +35,7 @@ abstract class $SplitAddressParamsCopyWith<$Res> { factory $SplitAddressParamsCopyWith( SplitAddressParams value, $Res Function(SplitAddressParams) then) = _$SplitAddressParamsCopyWithImpl<$Res, SplitAddressParams>; + @useResult $Res call({@JsonKey(name: 'address') String address}); } @@ -45,6 +47,7 @@ class _$SplitAddressParamsCopyWithImpl<$Res, $Val extends SplitAddressParams> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -68,6 +71,7 @@ abstract class _$$SplitAddressParamsImplCopyWith<$Res> factory _$$SplitAddressParamsImplCopyWith(_$SplitAddressParamsImpl value, $Res Function(_$SplitAddressParamsImpl) then) = __$$SplitAddressParamsImplCopyWithImpl<$Res>; + @override @useResult $Res call({@JsonKey(name: 'address') String address}); @@ -151,6 +155,7 @@ abstract class _SplitAddressParams implements SplitAddressParams { @override @JsonKey(name: 'address') String get address; + @override @JsonKey(ignore: true) _$$SplitAddressParamsImplCopyWith<_$SplitAddressParamsImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/wallet/split_address/split_address_result.freezed.dart b/lib/src/data_transfer_objects/wallet/split_address/split_address_result.freezed.dart index 3829038..cc21f72 100644 --- a/lib/src/data_transfer_objects/wallet/split_address/split_address_result.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/split_address/split_address_result.freezed.dart @@ -22,10 +22,12 @@ SplitAddressResult _$SplitAddressResultFromJson(Map json) { mixin _$SplitAddressResult { @JsonKey(name: 'address') String get address => throw _privateConstructorUsedError; + @JsonKey(name: 'integrated_data') Map get integratedData => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $SplitAddressResultCopyWith get copyWith => throw _privateConstructorUsedError; @@ -36,6 +38,7 @@ abstract class $SplitAddressResultCopyWith<$Res> { factory $SplitAddressResultCopyWith( SplitAddressResult value, $Res Function(SplitAddressResult) then) = _$SplitAddressResultCopyWithImpl<$Res, SplitAddressResult>; + @useResult $Res call( {@JsonKey(name: 'address') String address, @@ -49,6 +52,7 @@ class _$SplitAddressResultCopyWithImpl<$Res, $Val extends SplitAddressResult> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -77,6 +81,7 @@ abstract class _$$SplitAddressResultImplCopyWith<$Res> factory _$$SplitAddressResultImplCopyWith(_$SplitAddressResultImpl value, $Res Function(_$SplitAddressResultImpl) then) = __$$SplitAddressResultImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -127,6 +132,7 @@ class _$SplitAddressResultImpl implements _SplitAddressResult { @JsonKey(name: 'address') final String address; final Map _integratedData; + @override @JsonKey(name: 'integrated_data') Map get integratedData { @@ -183,9 +189,11 @@ abstract class _SplitAddressResult implements SplitAddressResult { @override @JsonKey(name: 'address') String get address; + @override @JsonKey(name: 'integrated_data') Map get integratedData; + @override @JsonKey(ignore: true) _$$SplitAddressResultImplCopyWith<_$SplitAddressResultImpl> get copyWith => diff --git a/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry_type.freezed.dart b/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry_type.freezed.dart index a4ddbd7..00c9a57 100644 --- a/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry_type.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/transaction_entry/transaction_entry_type.freezed.dart @@ -121,7 +121,7 @@ class _$TransactionEntryTypeCopyWithImpl<$Res, // ignore: unused_field final $Val _value; -// ignore: unused_field + // ignore: unused_field final $Res Function($Val) _then; } diff --git a/lib/src/data_transfer_objects/wallet/transaction_entry/transfer_entry.freezed.dart b/lib/src/data_transfer_objects/wallet/transaction_entry/transfer_entry.freezed.dart index 3d5658c..3257818 100644 --- a/lib/src/data_transfer_objects/wallet/transaction_entry/transfer_entry.freezed.dart +++ b/lib/src/data_transfer_objects/wallet/transaction_entry/transfer_entry.freezed.dart @@ -22,14 +22,18 @@ TransferEntry _$TransferEntryFromJson(Map json) { mixin _$TransferEntry { @JsonKey(name: 'amount') int get amount => throw _privateConstructorUsedError; + @JsonKey(name: 'asset') String get asset => throw _privateConstructorUsedError; + @JsonKey(name: 'extra_data') dynamic get extraData => throw _privateConstructorUsedError; + @JsonKey(name: 'key') String get key => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; + @JsonKey(ignore: true) $TransferEntryCopyWith get copyWith => throw _privateConstructorUsedError; @@ -40,6 +44,7 @@ abstract class $TransferEntryCopyWith<$Res> { factory $TransferEntryCopyWith( TransferEntry value, $Res Function(TransferEntry) then) = _$TransferEntryCopyWithImpl<$Res, TransferEntry>; + @useResult $Res call( {@JsonKey(name: 'amount') int amount, @@ -55,6 +60,7 @@ class _$TransferEntryCopyWithImpl<$Res, $Val extends TransferEntry> // ignore: unused_field final $Val _value; + // ignore: unused_field final $Res Function($Val) _then; @@ -93,6 +99,7 @@ abstract class _$$TransferEntryImplCopyWith<$Res> factory _$$TransferEntryImplCopyWith( _$TransferEntryImpl value, $Res Function(_$TransferEntryImpl) then) = __$$TransferEntryImplCopyWithImpl<$Res>; + @override @useResult $Res call( @@ -212,15 +219,19 @@ abstract class _TransferEntry implements TransferEntry { @override @JsonKey(name: 'amount') int get amount; + @override @JsonKey(name: 'asset') String get asset; + @override @JsonKey(name: 'extra_data') dynamic get extraData; + @override @JsonKey(name: 'key') String get key; + @override @JsonKey(ignore: true) _$$TransferEntryImplCopyWith<_$TransferEntryImpl> get copyWith =>