toJson method
Implementation
Map<String, dynamic> toJson() {
final lastDecreaseDateTime = this.lastDecreaseDateTime;
final lastIncreaseDateTime = this.lastIncreaseDateTime;
final numberOfDecreasesToday = this.numberOfDecreasesToday;
final readCapacityUnits = this.readCapacityUnits;
final writeCapacityUnits = this.writeCapacityUnits;
return {
if (lastDecreaseDateTime != null)
'LastDecreaseDateTime': lastDecreaseDateTime,
if (lastIncreaseDateTime != null)
'LastIncreaseDateTime': lastIncreaseDateTime,
if (numberOfDecreasesToday != null)
'NumberOfDecreasesToday': numberOfDecreasesToday,
if (readCapacityUnits != null) 'ReadCapacityUnits': readCapacityUnits,
if (writeCapacityUnits != null) 'WriteCapacityUnits': writeCapacityUnits,
};
}