BulkContentStateSetInput.fromJson constructor

BulkContentStateSetInput.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory BulkContentStateSetInput.fromJson(Map<String, Object?> json) {
  return BulkContentStateSetInput(
    ids: (json[r'ids'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    contentState: ContentStateInput.fromJson(
        json[r'contentState'] as Map<String, Object?>? ?? const {}),
  );
}