Skip to content

Commit

Permalink
regenerated & formatted models
Browse files Browse the repository at this point in the history
  • Loading branch information
Equartey committed Apr 5, 2024
1 parent b41947f commit 77909a9
Show file tree
Hide file tree
Showing 88 changed files with 3,564 additions and 2,472 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

// 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 'ModelProvider.dart';
import 'package:amplify_core/amplify_core.dart' as amplify_core;

import 'ModelProvider.dart';

/** This is an auto generated class representing the BelongsToChildExplicit type in your schema. */
class BelongsToChildExplicit extends amplify_core.Model {
static const classType = const _BelongsToChildExplicitModelType();
Expand Down Expand Up @@ -132,9 +133,9 @@ class BelongsToChildExplicit extends amplify_core.Model {
BelongsToChildExplicit.fromJson(Map<String, dynamic> json)
: id = json['id'],
_name = json['name'],
_belongsToParent = json['belongsToParent']?['serializedData'] != null
? BelongsToParent.fromJson(new Map<String, dynamic>.from(
json['belongsToParent']['serializedData']))
_belongsToParent = json['belongsToParent'] != null
? BelongsToParent.fromJson(
new Map<String, dynamic>.from(json['belongsToParent']))
: null,
_createdAt = json['createdAt'] != null
? amplify_core.TemporalDateTime.fromString(json['createdAt'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

// 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 'ModelProvider.dart';
import 'package:amplify_core/amplify_core.dart' as amplify_core;

import 'ModelProvider.dart';

/** This is an auto generated class representing the BelongsToChildImplicit type in your schema. */
class BelongsToChildImplicit extends amplify_core.Model {
static const classType = const _BelongsToChildImplicitModelType();
Expand Down Expand Up @@ -132,9 +133,9 @@ class BelongsToChildImplicit extends amplify_core.Model {
BelongsToChildImplicit.fromJson(Map<String, dynamic> json)
: id = json['id'],
_name = json['name'],
_belongsToParent = json['belongsToParent']?['serializedData'] != null
? BelongsToParent.fromJson(new Map<String, dynamic>.from(
json['belongsToParent']['serializedData']))
_belongsToParent = json['belongsToParent'] != null
? BelongsToParent.fromJson(
new Map<String, dynamic>.from(json['belongsToParent']))
: null,
_createdAt = json['createdAt'] != null
? amplify_core.TemporalDateTime.fromString(json['createdAt'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

// 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 'ModelProvider.dart';
import 'package:amplify_core/amplify_core.dart' as amplify_core;

import 'ModelProvider.dart';

/** This is an auto generated class representing the BelongsToParent type in your schema. */
class BelongsToParent extends amplify_core.Model {
static const classType = const _BelongsToParentModelType();
Expand Down Expand Up @@ -192,13 +193,13 @@ class BelongsToParent extends amplify_core.Model {
BelongsToParent.fromJson(Map<String, dynamic> json)
: id = json['id'],
_name = json['name'],
_implicitChild = json['implicitChild']?['serializedData'] != null
? BelongsToChildImplicit.fromJson(new Map<String, dynamic>.from(
json['implicitChild']['serializedData']))
_implicitChild = json['implicitChild'] != null
? BelongsToChildImplicit.fromJson(
new Map<String, dynamic>.from(json['implicitChild']))
: null,
_explicitChild = json['explicitChild']?['serializedData'] != null
? BelongsToChildExplicit.fromJson(new Map<String, dynamic>.from(
json['explicitChild']['serializedData']))
_explicitChild = json['explicitChild'] != null
? BelongsToChildExplicit.fromJson(
new Map<String, dynamic>.from(json['explicitChild']))
: null,
_createdAt = json['createdAt'] != null
? amplify_core.TemporalDateTime.fromString(json['createdAt'])
Expand Down
12 changes: 6 additions & 6 deletions packages/amplify_datastore/example/lib/models/Blog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@

// 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 'ModelProvider.dart';
import 'package:amplify_core/amplify_core.dart' as amplify_core;
import 'package:collection/collection.dart';

import 'ModelProvider.dart';

/** This is an auto generated class representing the Blog type in your schema. */
class Blog extends amplify_core.Model {
static const classType = const _BlogModelType();
Expand Down Expand Up @@ -132,11 +133,10 @@ class Blog extends amplify_core.Model {
Blog.fromJson(Map<String, dynamic> json)
: id = json['id'],
_name = json['name'],
_posts = json['posts'] is List
? (json['posts'] as List)
.where((e) => e?['serializedData'] != null)
.map((e) => Post.fromJson(
new Map<String, dynamic>.from(e['serializedData'])))
_posts = json['posts'] != null
? (json['posts']['items'] as List)
.where((e) => e != null)
.map((e) => Post.fromJson(new Map<String, dynamic>.from(e)))
.toList()
: null,
_createdAt = json['createdAt'] != null
Expand Down
8 changes: 4 additions & 4 deletions packages/amplify_datastore/example/lib/models/Comment.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

// 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 'ModelProvider.dart';
import 'package:amplify_core/amplify_core.dart' as amplify_core;

import 'ModelProvider.dart';

/** This is an auto generated class representing the Comment type in your schema. */
class Comment extends amplify_core.Model {
static const classType = const _CommentModelType();
Expand Down Expand Up @@ -131,9 +132,8 @@ class Comment extends amplify_core.Model {

Comment.fromJson(Map<String, dynamic> json)
: id = json['id'],
_post = json['post']?['serializedData'] != null
? Post.fromJson(
new Map<String, dynamic>.from(json['post']['serializedData']))
_post = json['post'] != null
? Post.fromJson(new Map<String, dynamic>.from(json['post']))
: null,
_content = json['content'],
_createdAt = json['createdAt'] != null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

// 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 'ModelProvider.dart';
import 'package:amplify_core/amplify_core.dart' as amplify_core;

import 'ModelProvider.dart';

/** This is an auto generated class representing the CpkHasManyChildBidirectionalExplicit type in your schema. */
class CpkHasManyChildBidirectionalExplicit extends amplify_core.Model {
static const classType =
Expand Down Expand Up @@ -151,10 +152,9 @@ class CpkHasManyChildBidirectionalExplicit extends amplify_core.Model {
CpkHasManyChildBidirectionalExplicit.fromJson(Map<String, dynamic> json)
: id = json['id'],
_name = json['name'],
_hasManyParent = json['hasManyParent']?['serializedData'] != null
_hasManyParent = json['hasManyParent'] != null
? CpkHasManyParentBidirectionalExplicit.fromJson(
new Map<String, dynamic>.from(
json['hasManyParent']['serializedData']))
new Map<String, dynamic>.from(json['hasManyParent']))
: null,
_createdAt = json['createdAt'] != null
? amplify_core.TemporalDateTime.fromString(json['createdAt'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

// 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 'ModelProvider.dart';
import 'package:amplify_core/amplify_core.dart' as amplify_core;

import 'ModelProvider.dart';

/** This is an auto generated class representing the CpkHasManyChildBidirectionalImplicit type in your schema. */
class CpkHasManyChildBidirectionalImplicit extends amplify_core.Model {
static const classType =
Expand Down Expand Up @@ -151,10 +152,9 @@ class CpkHasManyChildBidirectionalImplicit extends amplify_core.Model {
CpkHasManyChildBidirectionalImplicit.fromJson(Map<String, dynamic> json)
: id = json['id'],
_name = json['name'],
_hasManyParent = json['hasManyParent']?['serializedData'] != null
_hasManyParent = json['hasManyParent'] != null
? CpkHasManyParentBidirectionalImplicit.fromJson(
new Map<String, dynamic>.from(
json['hasManyParent']['serializedData']))
new Map<String, dynamic>.from(json['hasManyParent']))
: null,
_createdAt = json['createdAt'] != null
? amplify_core.TemporalDateTime.fromString(json['createdAt'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@

// 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 'ModelProvider.dart';
import 'package:amplify_core/amplify_core.dart' as amplify_core;
import 'package:collection/collection.dart';

import 'ModelProvider.dart';

/** This is an auto generated class representing the CpkHasManyParentBidirectionalExplicit type in your schema. */
class CpkHasManyParentBidirectionalExplicit extends amplify_core.Model {
static const classType =
Expand Down Expand Up @@ -166,11 +167,11 @@ class CpkHasManyParentBidirectionalExplicit extends amplify_core.Model {
: id = json['id'],
_name = json['name'],
_bidirectionalExplicitChildren =
json['bidirectionalExplicitChildren'] is List
? (json['bidirectionalExplicitChildren'] as List)
.where((e) => e?['serializedData'] != null)
json['bidirectionalExplicitChildren'] != null
? (json['bidirectionalExplicitChildren']['items'] as List)
.where((e) => e != null)
.map((e) => CpkHasManyChildBidirectionalExplicit.fromJson(
new Map<String, dynamic>.from(e['serializedData'])))
new Map<String, dynamic>.from(e)))
.toList()
: null,
_createdAt = json['createdAt'] != null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@

// 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 'ModelProvider.dart';
import 'package:amplify_core/amplify_core.dart' as amplify_core;
import 'package:collection/collection.dart';

import 'ModelProvider.dart';

/** This is an auto generated class representing the CpkHasManyParentBidirectionalImplicit type in your schema. */
class CpkHasManyParentBidirectionalImplicit extends amplify_core.Model {
static const classType =
Expand Down Expand Up @@ -166,11 +167,11 @@ class CpkHasManyParentBidirectionalImplicit extends amplify_core.Model {
: id = json['id'],
_name = json['name'],
_bidirectionalImplicitChildren =
json['bidirectionalImplicitChildren'] is List
? (json['bidirectionalImplicitChildren'] as List)
.where((e) => e?['serializedData'] != null)
json['bidirectionalImplicitChildren'] != null
? (json['bidirectionalImplicitChildren']['items'] as List)
.where((e) => e != null)
.map((e) => CpkHasManyChildBidirectionalImplicit.fromJson(
new Map<String, dynamic>.from(e['serializedData'])))
new Map<String, dynamic>.from(e)))
.toList()
: null,
_createdAt = json['createdAt'] != null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

// 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 'ModelProvider.dart';
import 'package:amplify_core/amplify_core.dart' as amplify_core;

import 'ModelProvider.dart';

/** This is an auto generated class representing the CpkHasManyUnidirectionalChildExplicit type in your schema. */
class CpkHasManyUnidirectionalChildExplicit extends amplify_core.Model {
static const classType =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@

// 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 'ModelProvider.dart';
import 'package:amplify_core/amplify_core.dart' as amplify_core;

import 'ModelProvider.dart';

/** This is an auto generated class representing the CpkHasManyUnidirectionalChildImplicit type in your schema. */
class CpkHasManyUnidirectionalChildImplicit extends amplify_core.Model {
static const classType =
Expand Down
Loading

0 comments on commit 77909a9

Please sign in to comment.