toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'accountId': accountId,
    'email': email,
    'name': name,
    'givenName': givenName,
    'pictureUrl': pictureUrl,
    'idpConfigUrl': idpConfigUrl,
    'idpLoginUrl': idpLoginUrl,
    'loginState': loginState.toJson(),
    if (termsOfServiceUrl != null) 'termsOfServiceUrl': termsOfServiceUrl,
    if (privacyPolicyUrl != null) 'privacyPolicyUrl': privacyPolicyUrl,
  };
}