v1InitUserEmailRecoveryIntentV2.fromJson constructor

v1InitUserEmailRecoveryIntentV2.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory v1InitUserEmailRecoveryIntentV2.fromJson(Map<String, dynamic> json) {
  final _email = json['email'] as String;
  final _targetPublicKey = json['targetPublicKey'] as String;
  final _expirationSeconds = json['expirationSeconds'] as String?;
  final _emailCustomization = v1EmailAuthCustomizationParams.fromJson(json['emailCustomization'] as Map<String, dynamic>);
  final _sendFromEmailAddress = json['sendFromEmailAddress'] as String?;
  final _sendFromEmailSenderName = json['sendFromEmailSenderName'] as String?;
  final _replyToEmailAddress = json['replyToEmailAddress'] as String?;
  return v1InitUserEmailRecoveryIntentV2(
    email: _email,
    targetPublicKey: _targetPublicKey,
    expirationSeconds: _expirationSeconds,
    emailCustomization: _emailCustomization,
    sendFromEmailAddress: _sendFromEmailAddress,
    sendFromEmailSenderName: _sendFromEmailSenderName,
    replyToEmailAddress: _replyToEmailAddress,
  );
}