toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (extern != null) {
    json[r'extern'] = extern;
  }
  json[r'query'] = query;
  if (type != null) {
    json[r'type'] = type;
  }
  if (params != null) {
    json[r'params'] = params;
  }
  if (dialect != null) {
    json[r'dialect'] = dialect;
  }
  if (now != null) {
    json[r'now'] = now!.toUtc().toIso8601String();
  }
  return json;
}