generateJsonDecodingFile method

String generateJsonDecodingFile({
  1. required String relativeImport,
})

Generate deserialization method.

{@category generator}

Implementation

String generateJsonDecodingFile({
  required String relativeImport,
}) {
  if (valuesJSON.length == values.length) {
    return _withSerializableNames(relativeImport);
  }

  return _withoutSerializableNames(relativeImport);
}