Target_DocumentsTarget.fromJson constructor

Target_DocumentsTarget.fromJson(
  1. Object? j
)

Implementation

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