toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final queryName = this.queryName;
  final description = this.description;
  final expression = this.expression;
  final queryArn = this.queryArn;
  final queryId = this.queryId;
  return {
    'QueryName': queryName,
    if (description != null) 'Description': description,
    if (expression != null) 'Expression': expression,
    if (queryArn != null) 'QueryArn': queryArn,
    if (queryId != null) 'QueryId': queryId,
  };
}