content: /*
  * Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
  *
  *  http://aws.amazon.com/apache2.0
  *
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
  
  // ignore_for_file: public_member_api_docs
  
  import 'package:amplify_datastore_plugin_interface/amplify_datastore_plugin_interface.dart';
  import 'SexyObject.dart';
  
  export 'SexyObject.dart';
  
  class ModelProvider implements ModelProviderInterface {
    @override
    String version = "cf3ae2e3d9717bd0adb38d90b1c6c751";
    @override
    List<ModelSchema> modelSchemas = [SexyObject.schema];
    static final ModelProvider _instance = ModelProvider();
  
    static ModelProvider get instance => _instance;
  
    ModelType getModelTypeByModelName(String modelName) {
      switch (modelName) {
        case "SexyObject":
          {
            return SexyObject.classType;
          }
          break;
        default:
          {
            throw Exception(
                "Failed to find model in model provider for model name: " +
                    modelName);
          }
      }
    }
  }
  