ListLogPatternsResponse.fromJson constructor

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

Implementation

factory ListLogPatternsResponse.fromJson(Map<String, dynamic> json) {
  return ListLogPatternsResponse(
    logPatterns: (json['LogPatterns'] as List?)
        ?.whereNotNull()
        .map((e) => LogPattern.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
    resourceGroupName: json['ResourceGroupName'] as String?,
  );
}