StructuredQuery_Order.fromJson constructor

StructuredQuery_Order.fromJson(
  1. Object? j
)

Implementation

factory StructuredQuery_Order.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return StructuredQuery_Order(
    field: switch (json['field']) {
      null => null,
      Object $1 => StructuredQuery_FieldReference.fromJson($1),
    },
    direction: switch (json['direction']) {
      null => StructuredQuery_Direction.$default,
      Object $1 => StructuredQuery_Direction.fromJson($1),
    },
  );
}