ContentStateRestInput.fromJson constructor

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

Implementation

factory ContentStateRestInput.fromJson(Map<String, Object?> json) {
  return ContentStateRestInput(
    name: json[r'name'] as String?,
    color: json[r'color'] as String?,
    id: (json[r'id'] as num?)?.toInt(),
  );
}