Skip to content

Commit

Permalink
fix: make Transaction.boc nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-A4 committed Nov 14, 2023
1 parent dc0429a commit 4e3d0ac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sealed class Transaction with _$Transaction implements Comparable<Transaction> {
@amountJsonConverter required final BigInt totalFees,
required final Message inMessage,
required final List<Message> outMessages,
required String boc,
required String? boc,
}) = _Transaction;

factory Transaction.fromJson(Map<String, dynamic> json) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mixin _$Transaction {
BigInt get totalFees => throw _privateConstructorUsedError;
Message get inMessage => throw _privateConstructorUsedError;
List<Message> get outMessages => throw _privateConstructorUsedError;
String get boc => throw _privateConstructorUsedError;
String? get boc => throw _privateConstructorUsedError;

Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
Expand All @@ -61,7 +61,7 @@ abstract class $TransactionCopyWith<$Res> {
@amountJsonConverter BigInt totalFees,
Message inMessage,
List<Message> outMessages,
String boc});
String? boc});

$TransactionIdCopyWith<$Res> get id;
$TransactionIdCopyWith<$Res>? get prevTransactionId;
Expand Down Expand Up @@ -92,7 +92,7 @@ class _$TransactionCopyWithImpl<$Res, $Val extends Transaction>
Object? totalFees = null,
Object? inMessage = null,
Object? outMessages = null,
Object? boc = null,
Object? boc = freezed,
}) {
return _then(_value.copyWith(
id: null == id
Expand Down Expand Up @@ -139,10 +139,10 @@ class _$TransactionCopyWithImpl<$Res, $Val extends Transaction>
? _value.outMessages
: outMessages // ignore: cast_nullable_to_non_nullable
as List<Message>,
boc: null == boc
boc: freezed == boc
? _value.boc
: boc // ignore: cast_nullable_to_non_nullable
as String,
as String?,
) as $Val);
}

Expand Down Expand Up @@ -195,7 +195,7 @@ abstract class _$$TransactionImplCopyWith<$Res>
@amountJsonConverter BigInt totalFees,
Message inMessage,
List<Message> outMessages,
String boc});
String? boc});

@override
$TransactionIdCopyWith<$Res> get id;
Expand Down Expand Up @@ -227,7 +227,7 @@ class __$$TransactionImplCopyWithImpl<$Res>
Object? totalFees = null,
Object? inMessage = null,
Object? outMessages = null,
Object? boc = null,
Object? boc = freezed,
}) {
return _then(_$TransactionImpl(
id: null == id
Expand Down Expand Up @@ -274,10 +274,10 @@ class __$$TransactionImplCopyWithImpl<$Res>
? _value._outMessages
: outMessages // ignore: cast_nullable_to_non_nullable
as List<Message>,
boc: null == boc
boc: freezed == boc
? _value.boc
: boc // ignore: cast_nullable_to_non_nullable
as String,
as String?,
));
}
}
Expand Down Expand Up @@ -337,7 +337,7 @@ class _$TransactionImpl extends _Transaction {
}

@override
final String boc;
final String? boc;

@override
String toString() {
Expand Down Expand Up @@ -416,7 +416,7 @@ abstract class _Transaction extends Transaction {
@amountJsonConverter required final BigInt totalFees,
required final Message inMessage,
required final List<Message> outMessages,
required final String boc}) = _$TransactionImpl;
required final String? boc}) = _$TransactionImpl;
const _Transaction._() : super._();

factory _Transaction.fromJson(Map<String, dynamic> json) =
Expand Down Expand Up @@ -449,7 +449,7 @@ abstract class _Transaction extends Transaction {
@override
List<Message> get outMessages;
@override
String get boc;
String? get boc;
@override
@JsonKey(ignore: true)
_$$TransactionImplCopyWith<_$TransactionImpl> get copyWith =>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e3d0ac

Please sign in to comment.