ClassConfig.fromJsonSerializable constructor

ClassConfig.fromJsonSerializable(
  1. JsonSerializable config
)

Implementation

factory ClassConfig.fromJsonSerializable(JsonSerializable config) =>
    // #CHANGE WHEN UPDATING json_annotation
    ClassConfig(
      checked: config.checked ?? ClassConfig.defaults.checked,
      anyMap: config.anyMap ?? ClassConfig.defaults.anyMap,
      constructor: config.constructor ?? ClassConfig.defaults.constructor,
      createFieldMap:
          config.createFieldMap ?? ClassConfig.defaults.createFieldMap,
      createJsonKeys:
          config.createJsonKeys ?? ClassConfig.defaults.createJsonKeys,
      createPerFieldToJson: config.createPerFieldToJson ??
          ClassConfig.defaults.createPerFieldToJson,
      createFactory:
          config.createFactory ?? ClassConfig.defaults.createFactory,
      createToJson: config.createToJson ?? ClassConfig.defaults.createToJson,
      ignoreUnannotated:
          config.ignoreUnannotated ?? ClassConfig.defaults.ignoreUnannotated,
      explicitToJson:
          config.explicitToJson ?? ClassConfig.defaults.explicitToJson,
      includeIfNull:
          config.includeIfNull ?? ClassConfig.defaults.includeIfNull,
      genericArgumentFactories: config.genericArgumentFactories ??
          ClassConfig.defaults.genericArgumentFactories,
      fieldRename: config.fieldRename ?? ClassConfig.defaults.fieldRename,
      disallowUnrecognizedKeys: config.disallowUnrecognizedKeys ??
          ClassConfig.defaults.disallowUnrecognizedKeys,
      // TODO typeConverters = []
    );