factory CognitoConfig.fromJson(Map<String, dynamic> json) { return CognitoConfig( clientId: json['ClientId'] as String, userPool: json['UserPool'] as String, ); }