UpdateCustomMetricResponse.fromJson constructor

UpdateCustomMetricResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UpdateCustomMetricResponse.fromJson(Map<String, dynamic> json) {
  return UpdateCustomMetricResponse(
    creationDate: timeStampFromJson(json['creationDate']),
    displayName: json['displayName'] as String?,
    lastModifiedDate: timeStampFromJson(json['lastModifiedDate']),
    metricArn: json['metricArn'] as String?,
    metricName: json['metricName'] as String?,
    metricType: (json['metricType'] as String?)?.toCustomMetricType(),
  );
}