stack_wallet/lib/models/paymint/fee_object_model.dart

45 lines
1.2 KiB
Dart
Raw Normal View History

2023-05-26 21:21:16 +00:00
/*
* This file is part of Stack Wallet.
*
* Copyright (c) 2023 Cypher Stack
* All Rights Reserved.
* The code is distributed under GPLv3 license, see LICENSE file for details.
* Generated by Cypher Stack on 2023-05-26
*
*/
2022-08-26 08:11:35 +00:00
class FeeObject {
final int fast;
final int medium;
final int slow;
final int numberOfBlocksFast;
final int numberOfBlocksAverage;
final int numberOfBlocksSlow;
FeeObject({
required this.numberOfBlocksFast,
required this.numberOfBlocksAverage,
required this.numberOfBlocksSlow,
required this.fast,
required this.medium,
required this.slow,
});
factory FeeObject.fromJson(Map<String, dynamic> json) {
return FeeObject(
fast: json['fast'] as int,
medium: json['average'] as int,
slow: json['slow'] as int,
numberOfBlocksFast: json['numberOfBlocksFast'] as int,
numberOfBlocksAverage: json['numberOfBlocksAverage'] as int,
numberOfBlocksSlow: json['numberOfBlocksSlow'] as int,
);
}
@override
String toString() {
return "{fast: $fast, medium: $medium, slow: $slow, numberOfBlocksFast: $numberOfBlocksFast, numberOfBlocksAverage: $numberOfBlocksAverage, numberOfBlocksSlow: $numberOfBlocksSlow}";
}
}