JsonDef constructor

JsonDef({
  1. String? rootClassName,
  2. dynamic jsonData,
  3. required bool rootClassNameWithPrefixSuffix,
  4. ClassNamePrefixSuffixBuilder? classNamePrefixSuffixBuilder,
})

Implementation

JsonDef({
  String? rootClassName,
  this.jsonData,
  required bool rootClassNameWithPrefixSuffix,
  ClassNamePrefixSuffixBuilder? classNamePrefixSuffixBuilder,
}) {
  _jsonStruct = ValueDef(
    rootClassName: rootClassName,
    rootClassNameWithPrefixSuffix: rootClassNameWithPrefixSuffix,
    value: jsonData,
    classNamePrefixSuffixBuilder: classNamePrefixSuffixBuilder,
  );
  _summarizeStruct = _jsonStruct.summarize();
}