Dashboard.fromJson constructor

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

Implementation

factory Dashboard.fromJson(Map<String, dynamic> json) {
  return Dashboard(
    arn: json['Arn'] as String?,
    createdTime: timeStampFromJson(json['CreatedTime']),
    dashboardId: json['DashboardId'] as String?,
    lastPublishedTime: timeStampFromJson(json['LastPublishedTime']),
    lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']),
    name: json['Name'] as String?,
    version: json['Version'] != null
        ? DashboardVersion.fromJson(json['Version'] as Map<String, dynamic>)
        : null,
  );
}