function getKeyValue()

in src/plugins/coding.ts [56:76]


function getKeyValue(
  annotations: ObjectGeneration.AnnotationMap,
  annotation: string,
  key: string,
): string | null {
  const jsonCodingAnnotation = annotations[annotation];
  if (jsonCodingAnnotation) {
    const propertiesDict = jsonCodingAnnotation[0];
    if (propertiesDict) {
      const property = propertiesDict['properties'];
      if (property) {
        const value = property[key];
        if (value) {
          return value;
        }
      }
    }
  }

  return null;
}