toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final kendraIndex = this.kendraIndex;
  final role = this.role;
  final queryFilterString = this.queryFilterString;
  return {
    'kendraIndex': kendraIndex,
    'role': role,
    if (queryFilterString != null) 'queryFilterString': queryFilterString,
  };
}