toJson method
Implementation
Map<String, dynamic> toJson() {
final monitorName = this.monitorName;
final monitorType = this.monitorType;
final creationDate = this.creationDate;
final dimensionalValueCount = this.dimensionalValueCount;
final lastEvaluatedDate = this.lastEvaluatedDate;
final lastUpdatedDate = this.lastUpdatedDate;
final monitorArn = this.monitorArn;
final monitorDimension = this.monitorDimension;
final monitorSpecification = this.monitorSpecification;
return {
'MonitorName': monitorName,
'MonitorType': monitorType.toValue(),
if (creationDate != null) 'CreationDate': creationDate,
if (dimensionalValueCount != null)
'DimensionalValueCount': dimensionalValueCount,
if (lastEvaluatedDate != null) 'LastEvaluatedDate': lastEvaluatedDate,
if (lastUpdatedDate != null) 'LastUpdatedDate': lastUpdatedDate,
if (monitorArn != null) 'MonitorArn': monitorArn,
if (monitorDimension != null)
'MonitorDimension': monitorDimension.toValue(),
if (monitorSpecification != null)
'MonitorSpecification': monitorSpecification,
};
}