toJson method
Converts a LimitedPriorityLevelConfiguration instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempAssuredConcurrencyShares = assuredConcurrencyShares;
final tempBorrowingLimitPercent = borrowingLimitPercent;
final tempLendablePercent = lendablePercent;
final tempLimitResponse = limitResponse;
if (tempAssuredConcurrencyShares != null) {
jsonData['assuredConcurrencyShares'] = tempAssuredConcurrencyShares;
}
if (tempBorrowingLimitPercent != null) {
jsonData['borrowingLimitPercent'] = tempBorrowingLimitPercent;
}
if (tempLendablePercent != null) {
jsonData['lendablePercent'] = tempLendablePercent;
}
if (tempLimitResponse != null) {
jsonData['limitResponse'] = tempLimitResponse.toJson();
}
return jsonData;
}