GetDeviceFleetReportResponse.fromJson constructor

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

Implementation

factory GetDeviceFleetReportResponse.fromJson(Map<String, dynamic> json) {
  return GetDeviceFleetReportResponse(
    deviceFleetArn: json['DeviceFleetArn'] as String,
    deviceFleetName: json['DeviceFleetName'] as String,
    agentVersions: (json['AgentVersions'] as List?)
        ?.whereNotNull()
        .map((e) => AgentVersion.fromJson(e as Map<String, dynamic>))
        .toList(),
    description: json['Description'] as String?,
    deviceStats: json['DeviceStats'] != null
        ? DeviceStats.fromJson(json['DeviceStats'] as Map<String, dynamic>)
        : null,
    modelStats: (json['ModelStats'] as List?)
        ?.whereNotNull()
        .map((e) => EdgeModelStat.fromJson(e as Map<String, dynamic>))
        .toList(),
    outputConfig: json['OutputConfig'] != null
        ? EdgeOutputConfig.fromJson(
            json['OutputConfig'] as Map<String, dynamic>)
        : null,
    reportGenerated: timeStampFromJson(json['ReportGenerated']),
  );
}