// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'account_credentials.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

AppleCredential _$AppleCredentialFromJson(Map<String, dynamic> json) => AppleCredential(
      authorizationCode: json['authorization_code'] as String,
      userIdentifier: json['user_identifier'] as String?,
      givenName: json['given_name'] as String?,
      familyName: json['family_name'] as String?,
      email: json['email'] as String?,
      identityToken: json['identity_token'] as String?,
      state: json['state'] as String?,
    );

Map<String, dynamic> _$AppleCredentialToJson(AppleCredential instance) => <String, dynamic>{
      'user_identifier': instance.userIdentifier,
      'given_name': instance.givenName,
      'family_name': instance.familyName,
      'email': instance.email,
      'authorization_code': instance.authorizationCode,
      'identity_token': instance.identityToken,
      'state': instance.state,
    };

FacebookPictureData _$FacebookPictureDataFromJson(Map<String, dynamic> json) => FacebookPictureData(
      width: json['width'] as int? ?? 0,
      height: json['height'] as int? ?? 0,
      isSilhouette: json['is_silhouette'] as bool? ?? false,
      url: json['url'] as String? ?? '',
    );

Map<String, dynamic> _$FacebookPictureDataToJson(FacebookPictureData instance) => <String, dynamic>{
      'width': instance.width,
      'height': instance.height,
      'is_silhouette': instance.isSilhouette,
      'url': instance.url,
    };

FacebookPicture _$FacebookPictureFromJson(Map<String, dynamic> json) => FacebookPicture(
      data: json['data'] == null
          ? null
          : FacebookPictureData.fromJson(json['data'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$FacebookPictureToJson(FacebookPicture instance) => <String, dynamic>{
      'data': instance.data,
    };

FacebookProfile _$FacebookProfileFromJson(Map<String, dynamic> json) => FacebookProfile(
      uid: json['id'] as String?,
      displayName: json['name'] as String?,
      firstName: json['first_name'] as String?,
      lastName: json['last_name'] as String?,
      gender: json['gender'] as String?,
      email: json['email'] as String?,
      phoneNumber: json['phoneNumber'] as String?,
      picture: json['picture'] == null
          ? null
          : FacebookPicture.fromJson(json['picture'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$FacebookProfileToJson(FacebookProfile instance) => <String, dynamic>{
      'id': instance.uid,
      'name': instance.displayName,
      'first_name': instance.firstName,
      'last_name': instance.lastName,
      'email': instance.email,
      'phoneNumber': instance.phoneNumber,
      'gender': instance.gender,
      'picture': instance.picture,
    };

FacebookCredential _$FacebookCredentialFromJson(Map<String, dynamic> json) => FacebookCredential(
      accessToken: facebookAccessTokenConvert
          .fromJson(json['facebook_access_token'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$FacebookCredentialToJson(FacebookCredential instance) => <String, dynamic>{
      'facebook_access_token': facebookAccessTokenConvert.toJson(instance.accessToken),
    };

GoogleProfile _$GoogleProfileFromJson(Map<String, dynamic> json) => GoogleProfile(
      uid: json['id'] as String?,
      displayName: json['name'] as String?,
      firstName: json['first_name'] as String?,
      lastName: json['last_name'] as String?,
      gender: json['gender'] as String?,
      email: json['email'] as String?,
      phoneNumber: json['phone_number'] as String?,
      photoUrl: json['photoUrl'] as String?,
    );

Map<String, dynamic> _$GoogleProfileToJson(GoogleProfile instance) => <String, dynamic>{
      'id': instance.uid,
      'name': instance.displayName,
      'first_name': instance.firstName,
      'last_name': instance.lastName,
      'email': instance.email,
      'phone_number': instance.phoneNumber,
      'gender': instance.gender,
      'photoUrl': instance.photoUrl,
    };

GoogleAuth _$GoogleAuthFromJson(Map<String, dynamic> json) => GoogleAuth(
      idToken: json['id_token'] as String,
      accessToken: json['access_token'] as String?,
      serverAuthCode: json['server_auth_code'] as String?,
    );

Map<String, dynamic> _$GoogleAuthToJson(GoogleAuth instance) => <String, dynamic>{
      'id_token': instance.idToken,
      'access_token': instance.accessToken,
      'server_auth_code': instance.serverAuthCode,
    };

GoogleCredential _$GoogleCredentialFromJson(Map<String, dynamic> json) => GoogleCredential(
      auth: GoogleAuth.fromJson(json['google_auth'] as Map<String, dynamic>),
      profile: json['google_profile'] == null
          ? null
          : GoogleProfile.fromJson(json['google_profile'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$GoogleCredentialToJson(GoogleCredential instance) => <String, dynamic>{
      'google_auth': instance.auth.toJson(),
      'google_profile': instance.profile?.toJson(),
    };
