toJson method

Map<String, Object> toJson()

Converts a LimitedPriorityLevelConfiguration instance to JSON data.

Implementation

Map<String, Object> toJson() {
  final jsonData = <String, Object>{};

  final tempBorrowingLimitPercent = borrowingLimitPercent;
  final tempLendablePercent = lendablePercent;
  final tempLimitResponse = limitResponse;
  final tempNominalConcurrencyShares = nominalConcurrencyShares;

  if (tempBorrowingLimitPercent != null) {
    jsonData['borrowingLimitPercent'] = tempBorrowingLimitPercent;
  }

  if (tempLendablePercent != null) {
    jsonData['lendablePercent'] = tempLendablePercent;
  }

  if (tempLimitResponse != null) {
    jsonData['limitResponse'] = tempLimitResponse.toJson();
  }

  if (tempNominalConcurrencyShares != null) {
    jsonData['nominalConcurrencyShares'] = tempNominalConcurrencyShares;
  }

  return jsonData;
}