JQLReferenceData.fromJson constructor

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

Implementation

factory JQLReferenceData.fromJson(Map<String, Object?> json) {
  return JQLReferenceData(
    jqlReservedWords: (json[r'jqlReservedWords'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    visibleFieldNames: (json[r'visibleFieldNames'] as List<Object?>?)
            ?.map((i) => FieldReferenceData.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    visibleFunctionNames: (json[r'visibleFunctionNames'] as List<Object?>?)
            ?.map((i) => FunctionReferenceData.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}