From 271afa52df1585a2b454d8b49f83640191bb1765 Mon Sep 17 00:00:00 2001 From: hawkbee1 Date: Tue, 29 Oct 2024 17:36:32 +0000 Subject: [PATCH] add g.dart files --- .../lib/src/credential_manifest.g.dart | 29 ++++ .../lib/src/models/color_object.g.dart | 16 ++ .../lib/src/models/constraints.g.dart | 20 +++ .../lib/src/models/contains.g.dart | 15 ++ .../lib/src/models/display_mapping.g.dart | 13 ++ .../src/models/display_mapping_path.g.dart | 21 +++ .../src/models/display_mapping_text.g.dart | 17 ++ .../lib/src/models/display_object.g.dart | 26 +++ .../lib/src/models/field.g.dart | 21 +++ .../lib/src/models/filter.g.dart | 23 +++ .../lib/src/models/format.dart | 6 + .../lib/src/models/format.g.dart | 49 ++++++ .../lib/src/models/format_type.g.dart | 18 ++ .../lib/src/models/image_object.g.dart | 18 ++ .../lib/src/models/input_descriptor.g.dart | 28 +++ .../lib/src/models/issued_by.g.dart | 17 ++ .../labeled_display_mapping_path.g.dart | 25 +++ .../labeled_display_mapping_text.g.dart | 21 +++ .../lib/src/models/output_descriptor.g.dart | 31 ++++ .../src/models/presentation_definition.g.dart | 39 +++++ .../lib/src/models/schema.g.dart | 17 ++ .../lib/src/models/styles.g.dart | 29 ++++ .../src/models/submission_requirement.g.dart | 27 +++ .../src/models/openid_configuration.g.dart | 160 ++++++++++++++++++ 24 files changed, 686 insertions(+) create mode 100644 packages/credential_manifest/lib/src/credential_manifest.g.dart create mode 100644 packages/credential_manifest/lib/src/models/color_object.g.dart create mode 100644 packages/credential_manifest/lib/src/models/constraints.g.dart create mode 100644 packages/credential_manifest/lib/src/models/contains.g.dart create mode 100644 packages/credential_manifest/lib/src/models/display_mapping.g.dart create mode 100644 packages/credential_manifest/lib/src/models/display_mapping_path.g.dart create mode 100644 packages/credential_manifest/lib/src/models/display_mapping_text.g.dart create mode 100644 packages/credential_manifest/lib/src/models/display_object.g.dart create mode 100644 packages/credential_manifest/lib/src/models/field.g.dart create mode 100644 packages/credential_manifest/lib/src/models/filter.g.dart create mode 100644 packages/credential_manifest/lib/src/models/format.g.dart create mode 100644 packages/credential_manifest/lib/src/models/format_type.g.dart create mode 100644 packages/credential_manifest/lib/src/models/image_object.g.dart create mode 100644 packages/credential_manifest/lib/src/models/input_descriptor.g.dart create mode 100644 packages/credential_manifest/lib/src/models/issued_by.g.dart create mode 100644 packages/credential_manifest/lib/src/models/labeled_display_mapping_path.g.dart create mode 100644 packages/credential_manifest/lib/src/models/labeled_display_mapping_text.g.dart create mode 100644 packages/credential_manifest/lib/src/models/output_descriptor.g.dart create mode 100644 packages/credential_manifest/lib/src/models/presentation_definition.g.dart create mode 100644 packages/credential_manifest/lib/src/models/schema.g.dart create mode 100644 packages/credential_manifest/lib/src/models/styles.g.dart create mode 100644 packages/credential_manifest/lib/src/models/submission_requirement.g.dart create mode 100644 packages/oidc4vc/lib/src/models/openid_configuration.g.dart diff --git a/packages/credential_manifest/lib/src/credential_manifest.g.dart b/packages/credential_manifest/lib/src/credential_manifest.g.dart new file mode 100644 index 000000000..91a026034 --- /dev/null +++ b/packages/credential_manifest/lib/src/credential_manifest.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'credential_manifest.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CredentialManifest _$CredentialManifestFromJson(Map json) => + CredentialManifest( + json['id'] as String?, + json['issuer'] == null + ? null + : IssuedBy.fromJson(json['issuer'] as Map), + (json['output_descriptors'] as List?) + ?.map((e) => OutputDescriptor.fromJson(e as Map)) + .toList(), + CredentialManifest.presentationDefinitionFromJson( + json['presentation_definition']), + ); + +Map _$CredentialManifestToJson(CredentialManifest instance) => + { + 'id': instance.id, + 'issuer': instance.issuedBy?.toJson(), + 'output_descriptors': + instance.outputDescriptors?.map((e) => e.toJson()).toList(), + 'presentation_definition': instance.presentationDefinition?.toJson(), + }; diff --git a/packages/credential_manifest/lib/src/models/color_object.g.dart b/packages/credential_manifest/lib/src/models/color_object.g.dart new file mode 100644 index 000000000..d55a4826a --- /dev/null +++ b/packages/credential_manifest/lib/src/models/color_object.g.dart @@ -0,0 +1,16 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'color_object.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ColorObject _$ColorObjectFromJson(Map json) => ColorObject( + json['color'] as String?, + ); + +Map _$ColorObjectToJson(ColorObject instance) => + { + 'color': instance.color, + }; diff --git a/packages/credential_manifest/lib/src/models/constraints.g.dart b/packages/credential_manifest/lib/src/models/constraints.g.dart new file mode 100644 index 000000000..7413c1d96 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/constraints.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'constraints.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Constraints _$ConstraintsFromJson(Map json) => Constraints( + fields: (json['fields'] as List?) + ?.map((e) => Field.fromJson(e as Map)) + .toList(), + limitDisclosure: json['limit_disclosure'] as String?, + ); + +Map _$ConstraintsToJson(Constraints instance) => + { + 'fields': instance.fields?.map((e) => e.toJson()).toList(), + 'limit_disclosure': instance.limitDisclosure, + }; diff --git a/packages/credential_manifest/lib/src/models/contains.g.dart b/packages/credential_manifest/lib/src/models/contains.g.dart new file mode 100644 index 000000000..42cced87a --- /dev/null +++ b/packages/credential_manifest/lib/src/models/contains.g.dart @@ -0,0 +1,15 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'contains.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Contains _$ContainsFromJson(Map json) => Contains( + containsConst: json['const'] as String, + ); + +Map _$ContainsToJson(Contains instance) => { + 'const': instance.containsConst, + }; diff --git a/packages/credential_manifest/lib/src/models/display_mapping.g.dart b/packages/credential_manifest/lib/src/models/display_mapping.g.dart new file mode 100644 index 000000000..169bfe99a --- /dev/null +++ b/packages/credential_manifest/lib/src/models/display_mapping.g.dart @@ -0,0 +1,13 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'display_mapping.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +DisplayMapping _$DisplayMappingFromJson(Map json) => + DisplayMapping(); + +Map _$DisplayMappingToJson(DisplayMapping instance) => + {}; diff --git a/packages/credential_manifest/lib/src/models/display_mapping_path.g.dart b/packages/credential_manifest/lib/src/models/display_mapping_path.g.dart new file mode 100644 index 000000000..7b3e831d4 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/display_mapping_path.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'display_mapping_path.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +DisplayMappingPath _$DisplayMappingPathFromJson(Map json) => + DisplayMappingPath( + (json['path'] as List).map((e) => e as String).toList(), + Schema.fromJson(json['schema'] as Map), + json['fallback'] as String?, + ); + +Map _$DisplayMappingPathToJson(DisplayMappingPath instance) => + { + 'path': instance.path, + 'schema': instance.schema.toJson(), + 'fallback': instance.fallback, + }; diff --git a/packages/credential_manifest/lib/src/models/display_mapping_text.g.dart b/packages/credential_manifest/lib/src/models/display_mapping_text.g.dart new file mode 100644 index 000000000..f0ba2bd05 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/display_mapping_text.g.dart @@ -0,0 +1,17 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'display_mapping_text.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +DisplayMappingText _$DisplayMappingTextFromJson(Map json) => + DisplayMappingText( + json['text'] as String, + ); + +Map _$DisplayMappingTextToJson(DisplayMappingText instance) => + { + 'text': instance.text, + }; diff --git a/packages/credential_manifest/lib/src/models/display_object.g.dart b/packages/credential_manifest/lib/src/models/display_object.g.dart new file mode 100644 index 000000000..60e29fd32 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/display_object.g.dart @@ -0,0 +1,26 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'display_object.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +DisplayObject _$DisplayObjectFromJson(Map json) => + DisplayObject( + DisplayObject._displayMappingFromJson( + json['title'] as Map?), + DisplayObject._displayMappingFromJson( + json['subtitle'] as Map?), + DisplayObject._displayMappingFromJson( + json['description'] as Map?), + DisplayObject._labeledDisplayMappingFromJson(json['properties']), + ); + +Map _$DisplayObjectToJson(DisplayObject instance) => + { + 'title': instance.title?.toJson(), + 'subtitle': instance.subtitle?.toJson(), + 'description': instance.description?.toJson(), + 'properties': instance.properties?.map((e) => e.toJson()).toList(), + }; diff --git a/packages/credential_manifest/lib/src/models/field.g.dart b/packages/credential_manifest/lib/src/models/field.g.dart new file mode 100644 index 000000000..b334ac647 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/field.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'field.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Field _$FieldFromJson(Map json) => Field( + path: (json['path'] as List).map((e) => e as String).toList(), + filter: json['filter'] == null + ? null + : Filter.fromJson(json['filter'] as Map), + optional: json['optional'] as bool? ?? false, + ); + +Map _$FieldToJson(Field instance) => { + 'path': instance.path, + 'filter': instance.filter?.toJson(), + 'optional': instance.optional, + }; diff --git a/packages/credential_manifest/lib/src/models/filter.g.dart b/packages/credential_manifest/lib/src/models/filter.g.dart new file mode 100644 index 000000000..a4762df0a --- /dev/null +++ b/packages/credential_manifest/lib/src/models/filter.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'filter.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Filter _$FilterFromJson(Map json) => Filter( + type: json['type'] as String, + pattern: json['pattern'] as String?, + contains: json['contains'] == null + ? null + : Contains.fromJson(json['contains'] as Map), + containsConst: json['const'] as String?, + ); + +Map _$FilterToJson(Filter instance) => { + 'type': instance.type, + 'pattern': instance.pattern, + 'contains': instance.contains?.toJson(), + 'const': instance.containsConst, + }; diff --git a/packages/credential_manifest/lib/src/models/format.dart b/packages/credential_manifest/lib/src/models/format.dart index bc641def0..c99aa901a 100644 --- a/packages/credential_manifest/lib/src/models/format.dart +++ b/packages/credential_manifest/lib/src/models/format.dart @@ -13,6 +13,8 @@ class Format { this.ldpVp, this.ldpVc, this.vcSdJwt, + this.jwtVcJsonLd, + this.jwtVpJsonLd, }); factory Format.fromJson(Map json) => _$FormatFromJson(json); @@ -25,6 +27,10 @@ class Format { FormatType? jwtVpJson; @JsonKey(name: 'jwt_vc_json') FormatType? jwtVcJson; + @JsonKey(name: 'jwt_vp_json_ld') + FormatType? jwtVpJsonLd; + @JsonKey(name: 'jwt_vc_json_ld') + FormatType? jwtVcJsonLd; @JsonKey(name: 'ldp_vp') FormatType? ldpVp; @JsonKey(name: 'ldp_vc') diff --git a/packages/credential_manifest/lib/src/models/format.g.dart b/packages/credential_manifest/lib/src/models/format.g.dart new file mode 100644 index 000000000..e73330157 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/format.g.dart @@ -0,0 +1,49 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'format.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Format _$FormatFromJson(Map json) => Format( + jwtVp: json['jwt_vp'] == null + ? null + : FormatType.fromJson(json['jwt_vp'] as Map), + jwtVc: json['jwt_vc'] == null + ? null + : FormatType.fromJson(json['jwt_vc'] as Map), + jwtVpJson: json['jwt_vp_json'] == null + ? null + : FormatType.fromJson(json['jwt_vp_json'] as Map), + jwtVcJson: json['jwt_vc_json'] == null + ? null + : FormatType.fromJson(json['jwt_vc_json'] as Map), + ldpVp: json['ldp_vp'] == null + ? null + : FormatType.fromJson(json['ldp_vp'] as Map), + ldpVc: json['ldp_vc'] == null + ? null + : FormatType.fromJson(json['ldp_vc'] as Map), + vcSdJwt: json['vc+sd-jwt'] == null + ? null + : FormatType.fromJson(json['vc+sd-jwt'] as Map), + jwtVcJsonLd: json['jwt_vc_json_ld'] == null + ? null + : FormatType.fromJson(json['jwt_vc_json_ld'] as Map), + jwtVpJsonLd: json['jwt_vp_json_ld'] == null + ? null + : FormatType.fromJson(json['jwt_vp_json_ld'] as Map), + ); + +Map _$FormatToJson(Format instance) => { + 'jwt_vp': instance.jwtVp?.toJson(), + 'jwt_vc': instance.jwtVc?.toJson(), + 'jwt_vp_json': instance.jwtVpJson?.toJson(), + 'jwt_vc_json': instance.jwtVcJson?.toJson(), + 'jwt_vp_json_ld': instance.jwtVpJsonLd?.toJson(), + 'jwt_vc_json_ld': instance.jwtVcJsonLd?.toJson(), + 'ldp_vp': instance.ldpVp?.toJson(), + 'ldp_vc': instance.ldpVc?.toJson(), + 'vc+sd-jwt': instance.vcSdJwt?.toJson(), + }; diff --git a/packages/credential_manifest/lib/src/models/format_type.g.dart b/packages/credential_manifest/lib/src/models/format_type.g.dart new file mode 100644 index 000000000..7528b6951 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/format_type.g.dart @@ -0,0 +1,18 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'format_type.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FormatType _$FormatTypeFromJson(Map json) => FormatType( + proofType: (json['proof_type'] as List?) + ?.map((e) => e as String) + .toList(), + ); + +Map _$FormatTypeToJson(FormatType instance) => + { + 'proof_type': instance.proofType, + }; diff --git a/packages/credential_manifest/lib/src/models/image_object.g.dart b/packages/credential_manifest/lib/src/models/image_object.g.dart new file mode 100644 index 000000000..f335bd75e --- /dev/null +++ b/packages/credential_manifest/lib/src/models/image_object.g.dart @@ -0,0 +1,18 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'image_object.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ImageObject _$ImageObjectFromJson(Map json) => ImageObject( + json['uri'] as String, + json['alt'] as String?, + ); + +Map _$ImageObjectToJson(ImageObject instance) => + { + 'uri': instance.uri, + 'alt': instance.alt, + }; diff --git a/packages/credential_manifest/lib/src/models/input_descriptor.g.dart b/packages/credential_manifest/lib/src/models/input_descriptor.g.dart new file mode 100644 index 000000000..1b04f8384 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/input_descriptor.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'input_descriptor.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InputDescriptor _$InputDescriptorFromJson(Map json) => + InputDescriptor( + id: json['id'] as String?, + group: + (json['group'] as List?)?.map((e) => e as String).toList(), + constraints: json['constraints'] == null + ? null + : Constraints.fromJson(json['constraints'] as Map), + purpose: json['purpose'] as String?, + name: json['name'] as String?, + ); + +Map _$InputDescriptorToJson(InputDescriptor instance) => + { + 'constraints': instance.constraints?.toJson(), + 'group': instance.group, + 'purpose': instance.purpose, + 'id': instance.id, + 'name': instance.name, + }; diff --git a/packages/credential_manifest/lib/src/models/issued_by.g.dart b/packages/credential_manifest/lib/src/models/issued_by.g.dart new file mode 100644 index 000000000..b32960130 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/issued_by.g.dart @@ -0,0 +1,17 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'issued_by.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +IssuedBy _$IssuedByFromJson(Map json) => IssuedBy( + json['id'] as String, + json['name'] as String, + ); + +Map _$IssuedByToJson(IssuedBy instance) => { + 'id': instance.id, + 'name': instance.name, + }; diff --git a/packages/credential_manifest/lib/src/models/labeled_display_mapping_path.g.dart b/packages/credential_manifest/lib/src/models/labeled_display_mapping_path.g.dart new file mode 100644 index 000000000..3d90bb771 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/labeled_display_mapping_path.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'labeled_display_mapping_path.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LabeledDisplayMappingPath _$LabeledDisplayMappingPathFromJson( + Map json) => + LabeledDisplayMappingPath( + (json['path'] as List).map((e) => e as String).toList(), + Schema.fromJson(json['schema'] as Map), + json['fallback'] as String?, + json['label'] as String, + ); + +Map _$LabeledDisplayMappingPathToJson( + LabeledDisplayMappingPath instance) => + { + 'label': instance.label, + 'path': instance.path, + 'schema': instance.schema.toJson(), + 'fallback': instance.fallback, + }; diff --git a/packages/credential_manifest/lib/src/models/labeled_display_mapping_text.g.dart b/packages/credential_manifest/lib/src/models/labeled_display_mapping_text.g.dart new file mode 100644 index 000000000..64bf1322e --- /dev/null +++ b/packages/credential_manifest/lib/src/models/labeled_display_mapping_text.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'labeled_display_mapping_text.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +LabeledDisplayMappingText _$LabeledDisplayMappingTextFromJson( + Map json) => + LabeledDisplayMappingText( + json['text'] as String, + json['label'] as String, + ); + +Map _$LabeledDisplayMappingTextToJson( + LabeledDisplayMappingText instance) => + { + 'label': instance.label, + 'text': instance.text, + }; diff --git a/packages/credential_manifest/lib/src/models/output_descriptor.g.dart b/packages/credential_manifest/lib/src/models/output_descriptor.g.dart new file mode 100644 index 000000000..66f19fc27 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/output_descriptor.g.dart @@ -0,0 +1,31 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'output_descriptor.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +OutputDescriptor _$OutputDescriptorFromJson(Map json) => + OutputDescriptor( + json['id'] as String, + json['schema'] as String, + json['name'] as String?, + json['description'] as String?, + json['styles'] == null + ? null + : Styles.fromJson(json['styles'] as Map), + json['display'] == null + ? null + : DisplayObject.fromJson(json['display'] as Map), + ); + +Map _$OutputDescriptorToJson(OutputDescriptor instance) => + { + 'id': instance.id, + 'schema': instance.schema, + 'name': instance.name, + 'description': instance.description, + 'styles': instance.styles?.toJson(), + 'display': instance.display?.toJson(), + }; diff --git a/packages/credential_manifest/lib/src/models/presentation_definition.g.dart b/packages/credential_manifest/lib/src/models/presentation_definition.g.dart new file mode 100644 index 000000000..106621096 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/presentation_definition.g.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'presentation_definition.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PresentationDefinition _$PresentationDefinitionFromJson( + Map json) => + PresentationDefinition( + inputDescriptors: (json['input_descriptors'] as List) + .map((e) => InputDescriptor.fromJson(e as Map)) + .toList(), + id: json['id'] as String?, + name: json['name'] as String?, + purpose: json['purpose'] as String?, + submissionRequirements: (json['submission_requirements'] + as List?) + ?.map( + (e) => SubmissionRequirement.fromJson(e as Map)) + .toList(), + format: json['format'] == null + ? null + : Format.fromJson(json['format'] as Map), + ); + +Map _$PresentationDefinitionToJson( + PresentationDefinition instance) => + { + 'id': instance.id, + 'input_descriptors': + instance.inputDescriptors.map((e) => e.toJson()).toList(), + 'submission_requirements': + instance.submissionRequirements?.map((e) => e.toJson()).toList(), + 'name': instance.name, + 'purpose': instance.purpose, + 'format': instance.format?.toJson(), + }; diff --git a/packages/credential_manifest/lib/src/models/schema.g.dart b/packages/credential_manifest/lib/src/models/schema.g.dart new file mode 100644 index 000000000..a930ebd91 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/schema.g.dart @@ -0,0 +1,17 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'schema.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Schema _$SchemaFromJson(Map json) => Schema( + json['type'] as String, + json['format'] as String?, + ); + +Map _$SchemaToJson(Schema instance) => { + 'type': instance.type, + 'format': instance.format, + }; diff --git a/packages/credential_manifest/lib/src/models/styles.g.dart b/packages/credential_manifest/lib/src/models/styles.g.dart new file mode 100644 index 000000000..fe5f6ae22 --- /dev/null +++ b/packages/credential_manifest/lib/src/models/styles.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'styles.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Styles _$StylesFromJson(Map json) => Styles( + json['thumbnail'] == null + ? null + : ImageObject.fromJson(json['thumbnail'] as Map), + json['hero'] == null + ? null + : ImageObject.fromJson(json['hero'] as Map), + json['background'] == null + ? null + : ColorObject.fromJson(json['background'] as Map), + json['text'] == null + ? null + : ColorObject.fromJson(json['text'] as Map), + ); + +Map _$StylesToJson(Styles instance) => { + 'thumbnail': instance.thumbnail?.toJson(), + 'hero': instance.hero?.toJson(), + 'background': instance.background?.toJson(), + 'text': instance.text?.toJson(), + }; diff --git a/packages/credential_manifest/lib/src/models/submission_requirement.g.dart b/packages/credential_manifest/lib/src/models/submission_requirement.g.dart new file mode 100644 index 000000000..5a0a1bccf --- /dev/null +++ b/packages/credential_manifest/lib/src/models/submission_requirement.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'submission_requirement.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SubmissionRequirement _$SubmissionRequirementFromJson( + Map json) => + SubmissionRequirement( + name: json['name'] as String?, + rule: json['rule'] as String?, + count: (json['count'] as num?)?.toInt(), + min: (json['min'] as num?)?.toInt(), + from: json['from'] as String?, + ); + +Map _$SubmissionRequirementToJson( + SubmissionRequirement instance) => + { + 'name': instance.name, + 'rule': instance.rule, + 'count': instance.count, + 'min': instance.min, + 'from': instance.from, + }; diff --git a/packages/oidc4vc/lib/src/models/openid_configuration.g.dart b/packages/oidc4vc/lib/src/models/openid_configuration.g.dart new file mode 100644 index 000000000..5c4212275 --- /dev/null +++ b/packages/oidc4vc/lib/src/models/openid_configuration.g.dart @@ -0,0 +1,160 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'openid_configuration.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +OpenIdConfiguration _$OpenIdConfigurationFromJson(Map json) => + OpenIdConfiguration( + requirePushedAuthorizationRequests: + json['require_pushed_authorization_requests'] as bool? ?? false, + authorizationServer: json['authorization_server'] as String?, + authorizationServers: (json['authorization_servers'] as List?) + ?.map((e) => e as String) + .toList(), + credentialsSupported: (json['credentials_supported'] as List?) + ?.map((e) => CredentialsSupported.fromJson(e as Map)) + .toList(), + credentialConfigurationsSupported: + json['credential_configurations_supported'], + credentialEndpoint: json['credential_endpoint'] as String?, + pushedAuthorizationRequestEndpoint: + json['pushed_authorization_request_endpoint'] as String?, + credentialIssuer: json['credential_issuer'] as String?, + subjectSyntaxTypesSupported: + json['subject_syntax_types_supported'] as List?, + tokenEndpoint: json['token_endpoint'] as String?, + batchEndpoint: json['batch_endpoint'] as String?, + authorizationEndpoint: json['authorization_endpoint'] as String?, + subjectTrustFrameworksSupported: + json['subject_trust_frameworks_supported'] as List?, + deferredCredentialEndpoint: + json['deferred_credential_endpoint'] as String?, + serviceDocumentation: json['service_documentation'] as String?, + credentialManifest: json['credential_manifest'] == null + ? null + : CredentialManifest.fromJson( + json['credential_manifest'] as Map), + credentialManifests: (json['credential_manifests'] as List?) + ?.map((e) => CredentialManifest.fromJson(e as Map)) + .toList(), + issuer: json['issuer'] as String?, + jwksUri: json['jwks_uri'] as String?, + grantTypesSupported: (json['grant_types_supported'] as List?) + ?.map((e) => e as String) + .toList(), + ); + +Map _$OpenIdConfigurationToJson( + OpenIdConfiguration instance) => + { + 'authorization_server': instance.authorizationServer, + 'authorization_servers': instance.authorizationServers, + 'credential_endpoint': instance.credentialEndpoint, + 'credential_issuer': instance.credentialIssuer, + 'subject_syntax_types_supported': instance.subjectSyntaxTypesSupported, + 'token_endpoint': instance.tokenEndpoint, + 'batch_endpoint': instance.batchEndpoint, + 'authorization_endpoint': instance.authorizationEndpoint, + 'pushed_authorization_request_endpoint': + instance.pushedAuthorizationRequestEndpoint, + 'subject_trust_frameworks_supported': + instance.subjectTrustFrameworksSupported, + 'credentials_supported': instance.credentialsSupported, + 'credential_configurations_supported': + instance.credentialConfigurationsSupported, + 'deferred_credential_endpoint': instance.deferredCredentialEndpoint, + 'service_documentation': instance.serviceDocumentation, + 'credential_manifest': instance.credentialManifest, + 'credential_manifests': instance.credentialManifests, + 'issuer': instance.issuer, + 'jwks_uri': instance.jwksUri, + 'require_pushed_authorization_requests': + instance.requirePushedAuthorizationRequests, + 'grant_types_supported': instance.grantTypesSupported, + }; + +CredentialsSupported _$CredentialsSupportedFromJson( + Map json) => + CredentialsSupported( + display: (json['display'] as List?) + ?.map((e) => Display.fromJson(e as Map)) + .toList(), + format: json['format'] as String?, + trustFramework: json['trust_framework'] == null + ? null + : TrustFramework.fromJson( + json['trust_framework'] as Map), + types: + (json['types'] as List?)?.map((e) => e as String).toList(), + id: json['id'] as String?, + scope: json['scope'] as String?, + credentialSubject: json['credentialSubject'], + ); + +Map _$CredentialsSupportedToJson( + CredentialsSupported instance) => + { + 'display': instance.display, + 'format': instance.format, + 'trust_framework': instance.trustFramework, + 'types': instance.types, + 'id': instance.id, + 'scope': instance.scope, + 'credentialSubject': instance.credentialSubject, + }; + +TrustFramework _$TrustFrameworkFromJson(Map json) => + TrustFramework( + name: json['name'] as String?, + type: json['type'] as String?, + uri: json['uri'] as String?, + ); + +Map _$TrustFrameworkToJson(TrustFramework instance) => + { + 'name': instance.name, + 'type': instance.type, + 'uri': instance.uri, + }; + +Display _$DisplayFromJson(Map json) => Display( + locale: json['locale'] as String?, + name: json['name'] as String?, + description: json['description'] as String?, + textColor: json['text_color'] as String?, + backgroundColor: json['background_color'] as String?, + backgroundImage: json['background_image'] == null + ? null + : DisplayDetails.fromJson( + json['background_image'] as Map), + logo: json['logo'] == null + ? null + : DisplayDetails.fromJson(json['logo'] as Map), + ); + +Map _$DisplayToJson(Display instance) => { + 'locale': instance.locale, + 'name': instance.name, + 'description': instance.description, + 'text_color': instance.textColor, + 'background_color': instance.backgroundColor, + 'background_image': instance.backgroundImage, + 'logo': instance.logo, + }; + +DisplayDetails _$DisplayDetailsFromJson(Map json) => + DisplayDetails( + url: json['url'] as String?, + altText: json['alt_text'] as String?, + uri: json['uri'] as String?, + ); + +Map _$DisplayDetailsToJson(DisplayDetails instance) => + { + 'url': instance.url, + 'alt_text': instance.altText, + 'uri': instance.uri, + };