ListPackagingConfigurationsResponse.fromJson constructor

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

Implementation

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