GetServiceGraphResult.fromJson constructor

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

Implementation

factory GetServiceGraphResult.fromJson(Map<String, dynamic> json) {
  return GetServiceGraphResult(
    containsOldGroupVersions: json['ContainsOldGroupVersions'] as bool?,
    endTime: timeStampFromJson(json['EndTime']),
    nextToken: json['NextToken'] as String?,
    services: (json['Services'] as List?)
        ?.whereNotNull()
        .map((e) => Service.fromJson(e as Map<String, dynamic>))
        .toList(),
    startTime: timeStampFromJson(json['StartTime']),
  );
}