toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final clientID = this.clientID;
  final requestCount = this.requestCount;
  final ruleName = this.ruleName;
  final sampledCount = this.sampledCount;
  final timestamp = this.timestamp;
  final borrowCount = this.borrowCount;
  return {
    'ClientID': clientID,
    'RequestCount': requestCount,
    'RuleName': ruleName,
    'SampledCount': sampledCount,
    'Timestamp': unixTimestampToJson(timestamp),
    if (borrowCount != null) 'BorrowCount': borrowCount,
  };
}