SharePointSources_SharePointSource.fromJson constructor
SharePointSources_SharePointSource.fromJson(
- Object? j
Implementation
factory SharePointSources_SharePointSource.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return SharePointSources_SharePointSource(
sharepointFolderPath: switch (json['sharepointFolderPath']) {
null => null,
Object $1 => decodeString($1),
},
sharepointFolderId: switch (json['sharepointFolderId']) {
null => null,
Object $1 => decodeString($1),
},
driveName: switch (json['driveName']) {
null => null,
Object $1 => decodeString($1),
},
driveId: switch (json['driveId']) {
null => null,
Object $1 => decodeString($1),
},
clientId: switch (json['clientId']) {
null => '',
Object $1 => decodeString($1),
},
clientSecret: switch (json['clientSecret']) {
null => null,
Object $1 => ApiAuth_ApiKeyConfig.fromJson($1),
},
tenantId: switch (json['tenantId']) {
null => '',
Object $1 => decodeString($1),
},
sharepointSiteName: switch (json['sharepointSiteName']) {
null => '',
Object $1 => decodeString($1),
},
fileId: switch (json['fileId']) {
null => '',
Object $1 => decodeString($1),
},
);
}