ListProfilingGroupsResponse.fromJson constructor

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

Implementation

factory ListProfilingGroupsResponse.fromJson(Map<String, dynamic> json) {
  return ListProfilingGroupsResponse(
    profilingGroupNames: (json['profilingGroupNames'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    nextToken: json['nextToken'] as String?,
    profilingGroups: (json['profilingGroups'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ProfilingGroupDescription.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}