toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'id': id,
    'name': requestName,
    'project_id': projectID,
    'query_type': type.name,
    'table': table,
    'select': select,
    'limit': limit,
    'offset': offset,
    'order_by': orderBy,
    'is_count': isCount,
    'filters': filters.map((e) => e.toJson()).toList(),
    'supabase_query_type': supabaseQueryType.name,
    'return_entity': returnEntity.toJson(),
    'repository_id': repositoryID,
    'single': single,
  };
}