ListInstanceProfilesResult.fromJson constructor

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

Implementation

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