JqlQueryOrderByClauseElement.fromJson constructor

JqlQueryOrderByClauseElement.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory JqlQueryOrderByClauseElement.fromJson(Map<String, Object?> json) {
  return JqlQueryOrderByClauseElement(
    direction: json[r'direction'] != null
        ? JqlQueryOrderByClauseElementDirection.fromValue(
            json[r'direction']! as String)
        : null,
    field: JqlQueryField.fromJson(
        json[r'field'] as Map<String, Object?>? ?? const {}),
  );
}