ClassificationModelOptions.fromJson constructor

ClassificationModelOptions.fromJson(
  1. Map json_
)

Implementation

ClassificationModelOptions.fromJson(core.Map json_)
    : this(
        v1Model: json_.containsKey('v1Model')
            ? ClassificationModelOptionsV1Model.fromJson(
                json_['v1Model'] as core.Map<core.String, core.dynamic>)
            : null,
        v2Model: json_.containsKey('v2Model')
            ? ClassificationModelOptionsV2Model.fromJson(
                json_['v2Model'] as core.Map<core.String, core.dynamic>)
            : null,
      );