factory Identity.fromJson(Map<String, dynamic> json) { return Identity( principalId: json['PrincipalId'] as String?, type: json['Type'] as String?, ); }