DescribeFleetMetadataResponse.fromJson constructor
DescribeFleetMetadataResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeFleetMetadataResponse.fromJson(Map<String, dynamic> json) {
return DescribeFleetMetadataResponse(
companyCode: json['CompanyCode'] as String?,
createdTime: timeStampFromJson(json['CreatedTime']),
displayName: json['DisplayName'] as String?,
fleetName: json['FleetName'] as String?,
fleetStatus: (json['FleetStatus'] as String?)?.toFleetStatus(),
lastUpdatedTime: timeStampFromJson(json['LastUpdatedTime']),
optimizeForEndUserLocation: json['OptimizeForEndUserLocation'] as bool?,
tags: (json['Tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}