SharePointSources_SharePointSource.fromJson constructor

SharePointSources_SharePointSource.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SharePointSources_SharePointSource.fromJson(
  Map<String, dynamic> json,
) {
  return SharePointSources_SharePointSource(
    sharepointFolderPath: json['sharepointFolderPath'],
    sharepointFolderId: json['sharepointFolderId'],
    driveName: json['driveName'],
    driveId: json['driveId'],
    clientId: json['clientId'] ?? '',
    clientSecret: decode(json['clientSecret'], ApiAuth_ApiKeyConfig.fromJson),
    tenantId: json['tenantId'] ?? '',
    sharepointSiteName: json['sharepointSiteName'] ?? '',
    fileId: json['fileId'] ?? '',
  );
}