ListV2LoggingLevelsResponse.fromJson constructor

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

Implementation

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