GetContainerServicePowersResult.fromJson constructor

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

Implementation

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