/* * Copyright 2021 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. */ // NOTE: This file is generated and may not follow lint rules defined in your app // Generated files can be excluded from analysis in analysis_options.yaml // For more info, see: https://dart.dev/guides/language/analysis-options#excluding-code-from-analysis // ignore_for_file: public_member_api_docs, annotate_overrides, dead_code, dead_codepublic_member_api_docs, depend_on_referenced_packages, file_names, library_private_types_in_public_api, no_leading_underscores_for_library_prefixes, no_leading_underscores_for_local_identifiers, non_constant_identifier_names, null_check_on_nullable_type_parameter, prefer_adjacent_string_concatenation, prefer_const_constructors, prefer_if_null_operators, prefer_interpolation_to_compose_strings, slash_for_doc_comments, sort_child_properties_last, unnecessary_const, unnecessary_constructor_name, unnecessary_late, unnecessary_new, unnecessary_null_aware_assignments, unnecessary_nullable_for_final_variable_declarations, unnecessary_string_interpolations, use_build_context_synchronously import 'package:amplify_core/amplify_core.dart'; import 'Blog.dart'; import 'Comment.dart'; import 'CpkOneToOneBidirectionalChildExplicitCD.dart'; import 'CpkOneToOneBidirectionalChildImplicitCD.dart'; import 'CpkOneToOneBidirectionalParentCD.dart'; import 'OwnerOnly.dart'; import 'Post.dart'; export 'Blog.dart'; export 'Comment.dart'; export 'CpkOneToOneBidirectionalChildExplicitCD.dart'; export 'CpkOneToOneBidirectionalChildImplicitCD.dart'; export 'CpkOneToOneBidirectionalParentCD.dart'; export 'OwnerOnly.dart'; export 'Post.dart'; class ModelProvider implements ModelProviderInterface { @override String version = "a88eeb9e37e28459e7e16f3f2f218f9e"; @override List modelSchemas = [ Blog.schema, Comment.schema, CpkOneToOneBidirectionalChildExplicitCD.schema, CpkOneToOneBidirectionalChildImplicitCD.schema, CpkOneToOneBidirectionalParentCD.schema, OwnerOnly.schema, Post.schema ]; static final ModelProvider _instance = ModelProvider(); @override List customTypeSchemas = []; static ModelProvider get instance => _instance; ModelType getModelTypeByModelName(String modelName) { switch (modelName) { case "Blog": return Blog.classType; case "Comment": return Comment.classType; case "CpkOneToOneBidirectionalChildExplicitCD": return CpkOneToOneBidirectionalChildExplicitCD.classType; case "CpkOneToOneBidirectionalChildImplicitCD": return CpkOneToOneBidirectionalChildImplicitCD.classType; case "CpkOneToOneBidirectionalParentCD": return CpkOneToOneBidirectionalParentCD.classType; case "OwnerOnly": return OwnerOnly.classType; case "Post": return Post.classType; default: throw Exception( "Failed to find model in model provider for model name: " + modelName); } } }