SharePointSources.fromJson constructor

SharePointSources.fromJson(
  1. Object? j
)

Implementation

factory SharePointSources.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return SharePointSources(
    sharePointSources: switch (json['sharePointSources']) {
      null => [],
      List<Object?> $1 => [
        for (final i in $1) SharePointSources_SharePointSource.fromJson(i),
      ],
      _ => throw const FormatException('"sharePointSources" is not a list'),
    },
  );
}