Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fdc): Updated to allow for sdktype to be set (core vs gen) #13392

Merged
merged 8 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,20 @@ class AddDirectorToMovie {
}

class AddDirectorToMovieDirectedByInsert {
late String directedbyId;
String directedbyId;

late String movieId;
String movieId;

AddDirectorToMovieDirectedByInsert.fromJson(Map<String, dynamic> json)
: directedbyId = json['directedbyId'],
movieId = json['movieId'] {}
: directedbyId = nativeFromJson<String>(json['directedbyId']),
movieId = nativeFromJson<String>(json['movieId']) {}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

json['directedbyId'] = directedbyId;
json['directedbyId'] = nativeToJson<String>(directedbyId);

json['movieId'] = movieId;
json['movieId'] = nativeToJson<String>(movieId);

return json;
}
Expand All @@ -48,18 +47,17 @@ class AddDirectorToMovieDirectedByInsert {
required this.directedbyId,
required this.movieId,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}

class AddDirectorToMovieData {
late AddDirectorToMovieDirectedByInsert directedBy_insert;
AddDirectorToMovieDirectedByInsert directedBy_insert;

AddDirectorToMovieData.fromJson(Map<String, dynamic> json)
: directedBy_insert = AddDirectorToMovieDirectedByInsert.fromJson(
json['directedBy_insert']) {}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

Expand All @@ -71,43 +69,46 @@ class AddDirectorToMovieData {
AddDirectorToMovieData({
required this.directedBy_insert,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}

class AddDirectorToMovieVariablesPersonId {
late String id;
String id;

AddDirectorToMovieVariablesPersonId.fromJson(Map<String, dynamic> json)
: id = json['id'] {}
: id = nativeFromJson<String>(json['id']) {}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

json['id'] = id;
json['id'] = nativeToJson<String>(id);

return json;
}

AddDirectorToMovieVariablesPersonId({
required this.id,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}

class AddDirectorToMovieVariables {
late AddDirectorToMovieVariablesPersonId? personId;
AddDirectorToMovieVariablesPersonId? personId;

late String? movieId;
String? movieId;

AddDirectorToMovieVariables.fromJson(Map<String, dynamic> json)
: personId =
AddDirectorToMovieVariablesPersonId.fromJson(json['personId']),
movieId = json['movieId'] {}
AddDirectorToMovieVariables.fromJson(Map<String, dynamic> json) {
personId = json['personId'] == null
? null
: AddDirectorToMovieVariablesPersonId.fromJson(json['personId']);

movieId = json['movieId'] == null
? null
: nativeFromJson<String>(json['movieId']);
}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

Expand All @@ -116,7 +117,7 @@ class AddDirectorToMovieVariables {
}

if (movieId != null) {
json['movieId'] = movieId;
json['movieId'] = nativeToJson<String?>(movieId);
}

return json;
Expand All @@ -126,6 +127,6 @@ class AddDirectorToMovieVariables {
this.personId,
this.movieId,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,32 @@ class AddPerson {
}

class AddPersonPersonInsert {
late String id;
String id;

AddPersonPersonInsert.fromJson(Map<String, dynamic> json) : id = json['id'] {}
AddPersonPersonInsert.fromJson(Map<String, dynamic> json)
: id = nativeFromJson<String>(json['id']) {}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

json['id'] = id;
json['id'] = nativeToJson<String>(id);

return json;
}

AddPersonPersonInsert({
required this.id,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}

class AddPersonData {
late AddPersonPersonInsert person_insert;
AddPersonPersonInsert person_insert;

AddPersonData.fromJson(Map<String, dynamic> json)
: person_insert = AddPersonPersonInsert.fromJson(json['person_insert']) {}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

Expand All @@ -61,22 +60,22 @@ class AddPersonData {
AddPersonData({
required this.person_insert,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}

class AddPersonVariables {
late String? name;
String? name;

AddPersonVariables.fromJson(Map<String, dynamic> json)
: name = json['name'] {}
AddPersonVariables.fromJson(Map<String, dynamic> json) {
name = json['name'] == null ? null : nativeFromJson<String>(json['name']);
}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

if (name != null) {
json['name'] = name;
json['name'] = nativeToJson<String?>(name);
}

return json;
Expand All @@ -85,6 +84,6 @@ class AddPersonVariables {
AddPersonVariables({
this.name,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,32 @@ class CreateMovie {
}

class CreateMovieMovieInsert {
late String id;
String id;

CreateMovieMovieInsert.fromJson(Map<String, dynamic> json)
: id = json['id'] {}
: id = nativeFromJson<String>(json['id']) {}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

json['id'] = id;
json['id'] = nativeToJson<String>(id);

return json;
}

CreateMovieMovieInsert({
required this.id,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}

class CreateMovieData {
late CreateMovieMovieInsert movie_insert;
CreateMovieMovieInsert movie_insert;

CreateMovieData.fromJson(Map<String, dynamic> json)
: movie_insert = CreateMovieMovieInsert.fromJson(json['movie_insert']) {}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

Expand All @@ -70,44 +68,48 @@ class CreateMovieData {
CreateMovieData({
required this.movie_insert,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}

class CreateMovieVariables {
late String title;
String title;

late int releaseYear;
int releaseYear;

late String genre;
String genre;

late double? rating;
double? rating;

late String? description;
String? description;

CreateMovieVariables.fromJson(Map<String, dynamic> json)
: title = json['title'],
releaseYear = json['releaseYear'],
genre = json['genre'],
rating = json['rating'],
description = json['description'] {}
: title = nativeFromJson<String>(json['title']),
releaseYear = nativeFromJson<int>(json['releaseYear']),
genre = nativeFromJson<String>(json['genre']) {
rating =
json['rating'] == null ? null : nativeFromJson<double>(json['rating']);

description = json['description'] == null
? null
: nativeFromJson<String>(json['description']);
}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

json['title'] = title;
json['title'] = nativeToJson<String>(title);

json['releaseYear'] = releaseYear;
json['releaseYear'] = nativeToJson<int>(releaseYear);

json['genre'] = genre;
json['genre'] = nativeToJson<String>(genre);

if (rating != null) {
json['rating'] = rating;
json['rating'] = nativeToJson<double?>(rating);
}

if (description != null) {
json['description'] = description;
json['description'] = nativeToJson<String?>(description);
}

return json;
Expand All @@ -120,6 +122,6 @@ class CreateMovieVariables {
this.rating,
this.description,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,35 @@ class DeleteMovie {
}

class DeleteMovieMovieDelete {
late String id;
String id;

DeleteMovieMovieDelete.fromJson(Map<String, dynamic> json)
: id = json['id'] {}
: id = nativeFromJson<String>(json['id']) {}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

json['id'] = id;
json['id'] = nativeToJson<String>(id);

return json;
}

DeleteMovieMovieDelete({
required this.id,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}

class DeleteMovieData {
late DeleteMovieMovieDelete? movie_delete;
DeleteMovieMovieDelete? movie_delete;

DeleteMovieData.fromJson(Map<String, dynamic> json)
: movie_delete = DeleteMovieMovieDelete.fromJson(json['movie_delete']) {}
DeleteMovieData.fromJson(Map<String, dynamic> json) {
movie_delete = json['movie_delete'] == null
? null
: DeleteMovieMovieDelete.fromJson(json['movie_delete']);
}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

Expand All @@ -64,27 +65,27 @@ class DeleteMovieData {
DeleteMovieData({
this.movie_delete,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}

class DeleteMovieVariables {
late String id;
String id;

DeleteMovieVariables.fromJson(Map<String, dynamic> json) : id = json['id'] {}
DeleteMovieVariables.fromJson(Map<String, dynamic> json)
: id = nativeFromJson<String>(json['id']) {}

// TODO: Fix up to create a map on the fly
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {};

json['id'] = id;
json['id'] = nativeToJson<String>(id);

return json;
}

DeleteMovieVariables({
required this.id,
}) {
// TODO: Only show this if there are optional fields.
// TODO(mtewani): Only show this if there are optional fields.
}
}
Loading
Loading