mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-27 13:59:21 +00:00
44 lines
1.2 KiB
Dart
44 lines
1.2 KiB
Dart
/*
|
|
* 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
|
|
*
|
|
*/
|
|
|
|
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}";
|
|
}
|
|
}
|