QueryDefinition.fromJson constructor

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

Implementation

factory QueryDefinition.fromJson(Map<String, dynamic> json) {
  return QueryDefinition(
    lastModified: json['lastModified'] as int?,
    logGroupNames: (json['logGroupNames'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    name: json['name'] as String?,
    queryDefinitionId: json['queryDefinitionId'] as String?,
    queryString: json['queryString'] as String?,
  );
}