AuthMethod.fromJson constructor
AuthMethod.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AuthMethod.fromJson(Map<String, dynamic> json) {
return AuthMethod(
id: json['id'] as String,
selected: json['selected'] as bool,
googleClientId: json['googleClientId'] != null
? GoogleClientId.fromJson(
json['googleClientId'] as Map<String, dynamic>)
: null,
appleWebOptions: json['appleWebOptions'] != null
? AppleWebOptions.fromJson(
json['appleWebOptions'] as Map<String, dynamic>)
: null,
);
}