LimitedPriorityLevelConfiguration.fromJson constructor
Creates a LimitedPriorityLevelConfiguration from JSON data.
Implementation
factory LimitedPriorityLevelConfiguration.fromJson(
Map<String, dynamic> json) {
final tempBorrowingLimitPercentJson = json['borrowingLimitPercent'];
final tempLendablePercentJson = json['lendablePercent'];
final tempLimitResponseJson = json['limitResponse'];
final tempNominalConcurrencySharesJson = json['nominalConcurrencyShares'];
final int? tempBorrowingLimitPercent = tempBorrowingLimitPercentJson;
final int? tempLendablePercent = tempLendablePercentJson;
final LimitResponse? tempLimitResponse = tempLimitResponseJson != null
? LimitResponse.fromJson(tempLimitResponseJson)
: null;
final int? tempNominalConcurrencyShares = tempNominalConcurrencySharesJson;
return LimitedPriorityLevelConfiguration(
borrowingLimitPercent: tempBorrowingLimitPercent,
lendablePercent: tempLendablePercent,
limitResponse: tempLimitResponse,
nominalConcurrencyShares: tempNominalConcurrencyShares,
);
}